Cache\Prefixed\Tests\PrefixedCachePoolTest::testDeleteItems PHP Method

testDeleteItems() public method

public testDeleteItems ( )
    public function testDeleteItems()
    {
        $prefix = 'ns';
        $key0 = 'key0';
        $key1 = 'key1';
        $returnValue = true;
        $stub = $this->getHierarchyCacheStub();
        $stub->expects($this->once())->method('deleteItems')->with([$prefix . $key0, $prefix . $key1])->willReturn($returnValue);
        $pool = new PrefixedCachePool($stub, $prefix);
        $this->assertEquals($returnValue, $pool->deleteItems([$key0, $key1]));
    }