#954 DDC-2982 - Evicting all cache entries is not supported with a generic cache adapter
This commit is contained in:
parent
95c6cca336
commit
0e4a7caf0b
@ -60,4 +60,16 @@ class DefaultRegionTest extends AbstractRegionTest
|
|||||||
|
|
||||||
$this->assertSame('foo', $cache->getNamespace());
|
$this->assertSame('foo', $cache->getNamespace());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testEvictAllWithGenericCacheThrowsUnsupportedException()
|
||||||
|
{
|
||||||
|
/* @var $cache \Doctrine\Common\Cache\Cache */
|
||||||
|
$cache = $this->getMock('Doctrine\Common\Cache\Cache');
|
||||||
|
|
||||||
|
$region = new DefaultRegion('foo', $cache);
|
||||||
|
|
||||||
|
$this->setExpectedException('BadMethodCallException');
|
||||||
|
|
||||||
|
$region->evictAll();
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user