AssetManagerTest\Service\AssetCacheManagerTest::testGetCacheProviderConfigReturnsDefaultCache PHP Method

testGetCacheProviderConfigReturnsDefaultCache() public method

    public function testGetCacheProviderConfigReturnsDefaultCache()
    {
        $expected = array('cache' => FilePathCache::class, 'options' => array('dir' => 'somewhere'));
        $serviceManager = new ServiceManager();
        $config = array('default' => $expected, 'some_other_definition' => array('cache' => FilePathCache::class));
        $assetManager = new AssetCacheManager($serviceManager, $config);
        $reflectionMethod = new \ReflectionMethod(AssetCacheManager::class, 'getCacheProviderConfig');
        $reflectionMethod->setAccessible(true);
        $providerConfig = $reflectionMethod->invoke($assetManager, 'my_provided_class.tmp');
        $this->assertEquals($expected, $providerConfig);
    }