AssetManagerTest\Service\PathStackResolverServiceFactoryTest::testCreateService PHP Method

testCreateService() public method

Mainly to avoid regressions
public testCreateService ( )
    public function testCreateService()
    {
        $serviceManager = new ServiceManager();
        $serviceManager->setService('config', array('asset_manager' => array('resolver_configs' => array('paths' => array('path1/', 'path2/')))));
        $factory = new PathStackResolverServiceFactory();
        /* @var $resolver PathStackResolver */
        $resolver = $factory->createService($serviceManager);
        $this->assertSame(array('path2/', 'path1/'), $resolver->getPaths()->toArray());
    }
PathStackResolverServiceFactoryTest