/** * @covers eZ\Publish\Core\MVC\Symfony\Cache\Http\LocalPurgeClient::__construct * @covers eZ\Publish\Core\MVC\Symfony\Cache\Http\LocalPurgeClient::purgeAll */ public function testPurgeAll() { $cacheStore = $this->getMock('eZ\\Publish\\Core\\MVC\\Symfony\\Cache\\Http\\ContentPurger'); $cacheStore->expects($this->once())->method('purgeAllContent'); $purgeClient = new LocalPurgeClient($cacheStore); $purgeClient->purgeAll(); }