AssetManagerTest\Service\AliasPathStackResolverServiceFactoryTest::testCreateServiceWithNoConfig PHP Method

testCreateServiceWithNoConfig() public method

Mainly to avoid regressions
    public function testCreateServiceWithNoConfig()
    {
        $serviceManager = new ServiceManager();
        $serviceManager->setService('config', array());
        $factory = new AliasPathStackResolverServiceFactory();
        /* @var $resolver AliasPathStackResolver */
        $resolver = $factory->createService($serviceManager);
        $reflectionClass = new \ReflectionClass(AliasPathStackResolver::class);
        $property = $reflectionClass->getProperty('aliases');
        $property->setAccessible(true);
        $this->assertEmpty($property->getValue($resolver));
    }
AliasPathStackResolverServiceFactoryTest