eZ\Publish\Core\REST\Client\Tests\ObjectCacheTest::testClearAll PHP Method

testClearAll() public method

public testClearAll ( )
    public function testClearAll()
    {
        $cache = $this->getCache();
        $object = new TestValueObject();
        $cache->store('some-key', $object);
        $cache->store('other-key', $object);
        $cache->clearAll();
        $this->assertNull($cache->restore('some-key'));
        $this->assertNull($cache->restore('other-key'));
    }