Neos\Flow\Tests\Functional\ObjectManagement\DependencyInjectionTest::singletonCanHandleConstructorArgumentWithCustomFactory PHP Method

singletonCanHandleConstructorArgumentWithCustomFactory() public method

    public function singletonCanHandleConstructorArgumentWithCustomFactory()
    {
        $objectG = $this->objectManager->get(Fixtures\SingletonClassG::class);
        // Note: The "prototypeClassA" is defined with a custom factory in the Objects.yaml of the Flow package (testing context)
        $this->assertNotNull($objectG->prototypeA);
        $this->assertSame('Constructor injection with factory', $objectG->prototypeA->getSomeProperty());
    }