We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78a96ef commit 9b5bea6Copy full SHA for 9b5bea6
src/TaggableCachePoolTest.php
@@ -261,8 +261,10 @@ public function testInvalidateTag()
261
// Create a new item (no tags)
262
$item = $this->cache->getItem('key')->set('value');
263
$this->cache->save($item);
264
- $this->cache->invalidateTags(['tag1']);
+ $this->cache->invalidateTags(['tag2']);
265
+ $this->assertTrue($this->cache->hasItem('key'), 'Item key list should be removed when clearing the tags');
266
267
+ $this->cache->invalidateTags(['tag1']);
268
$this->assertTrue($this->cache->hasItem('key'), 'Item key list should be removed when clearing the tags');
269
}
270
0 commit comments