Cache\Adapter\Doctrine\Tests\DoctrineAdapterTest::testClear PHP Method

testClear() public method

public testClear ( )
    public function testClear()
    {
        $this->assertFalse($this->pool->clear());
        $cache = m::mock(Cache::class . ',' . FlushableCache::class);
        $cache->shouldReceive('flushAll')->andReturn(true);
        $newPool = new DoctrineCachePool($cache);
        $this->assertTrue($newPool->clear());
        $cache->shouldReceive('fetch');
        $cache->shouldReceive('save');
        $this->assertTrue($newPool->clear(['dummy_tag']));
    }