AssetManagerTest\Service\AssetCacheManagerTest::testGetCacheProviderConfig PHP Method

testGetCacheProviderConfig() public method

    public function testGetCacheProviderConfig()
    {
        $expected = array('cache' => FilePathCache::class, 'options' => array('dir' => 'somewhere'));
        $serviceManager = new ServiceManager();
        $config = array('my_provided_class.tmp' => $expected);
        $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);
    }