Cache\Namespaced\Tests\NamespacedCachePoolTest::testDeleteItems PHP Méthode

testDeleteItems() public méthode

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