AssetManagerTest\Service\AssetCacheManagerTest::testSetCacheNoProviderFound PHP Method

testSetCacheNoProviderFound() public method

    public function testSetCacheNoProviderFound()
    {
        $serviceManager = new ServiceManager();
        $config = array('my/path' => array('cache' => 'Apc'));
        $mockAsset = $this->getMockBuilder(FileAsset::class)->disableOriginalConstructor()->getMock();
        $mockAsset->mimetype = 'image/png';
        $assetManager = new AssetCacheManager($serviceManager, $config);
        $assetCache = $assetManager->setCache('not/defined', $mockAsset);
        $this->assertFalse($assetCache instanceof AssetCache);
    }