Skip to content

Commit 9b5bea6

Browse files
authored
Minor addition (#63)
1 parent 78a96ef commit 9b5bea6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/TaggableCachePoolTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,10 @@ public function testInvalidateTag()
261261
// Create a new item (no tags)
262262
$item = $this->cache->getItem('key')->set('value');
263263
$this->cache->save($item);
264-
$this->cache->invalidateTags(['tag1']);
264+
$this->cache->invalidateTags(['tag2']);
265+
$this->assertTrue($this->cache->hasItem('key'), 'Item key list should be removed when clearing the tags');
265266

267+
$this->cache->invalidateTags(['tag1']);
266268
$this->assertTrue($this->cache->hasItem('key'), 'Item key list should be removed when clearing the tags');
267269
}
268270

0 commit comments

Comments
 (0)