function CacheTagsInvalidatorTest::testInvalidateTagsWithInvalidTags
Tests invalidate tags with invalid tags.
@legacy-covers ::invalidateTags
File
-
core/
tests/ Drupal/ Tests/ Core/ Cache/ CacheTagsInvalidatorTest.php, line 26
Class
Namespace
Drupal\Tests\Core\CacheCode
public function testInvalidateTagsWithInvalidTags() : void {
$cache_tags_invalidator = new CacheTagsInvalidator();
$this->expectException(\AssertionError::class);
$cache_tags_invalidator->invalidateTags([
'node' => [
2,
3,
5,
8,
13,
],
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.