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

singletonCanHandleInjectedPrototypeWithCustomFactory() public method

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