AssetManagerTest\Service\AssetCacheManagerTest::testGetProviderUsingDefaultConfiguration PHP Method

testGetProviderUsingDefaultConfiguration() public method

    public function testGetProviderUsingDefaultConfiguration()
    {
        $serviceManager = new ServiceManager();
        $config = array('default' => array('cache' => 'Apc'));
        $assetManager = new AssetCacheManager($serviceManager, $config);
        $reflectionMethod = new \ReflectionMethod(AssetCacheManager::class, 'getProvider');
        $reflectionMethod->setAccessible(true);
        $provider = $reflectionMethod->invoke($assetManager, 'no/path');
        $this->assertTrue($provider instanceof CacheInterface);
    }