Added a test

This commit is contained in:
Nyholm 2020-10-22 12:12:23 +02:00
parent fb540bba73
commit 88c1e2439e
No known key found for this signature in database
GPG Key ID: D6332DE2B6F8FA38

View File

@ -76,4 +76,11 @@ class CacheStorageTest extends TestCase
$this->assertNull($this->storage->fetch('test'));
}
public function testDelete()
{
$this->pool->expects($this->once())->method('deleteItem')->with(sha1('test'))->willReturn(true);
$this->assertNull($this->storage->delete('test'));
}
}