function CacheTagsInvalidatorTest::testInvalidateTagsWithInvalidTags
Same name and namespace in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Cache/CacheTagsInvalidatorTest.php \Drupal\Tests\Core\Cache\CacheTagsInvalidatorTest::testInvalidateTagsWithInvalidTags()
- 10 core/tests/Drupal/Tests/Core/Cache/CacheTagsInvalidatorTest.php \Drupal\Tests\Core\Cache\CacheTagsInvalidatorTest::testInvalidateTagsWithInvalidTags()
- 11.x core/tests/Drupal/Tests/Core/Cache/CacheTagsInvalidatorTest.php \Drupal\Tests\Core\Cache\CacheTagsInvalidatorTest::testInvalidateTagsWithInvalidTags()
@covers ::invalidateTags
File
-
core/
tests/ Drupal/ Tests/ Core/ Cache/ CacheTagsInvalidatorTest.php, line 18
Class
- CacheTagsInvalidatorTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Cache%21CacheTagsInvalidator.php/class/CacheTagsInvalidator/9" title="Passes cache tag events to classes that wish to respond to them." class="local">\Drupal\Core\Cache\CacheTagsInvalidator</a> @group Cache
Namespace
Drupal\Tests\Core\CacheCode
public function testInvalidateTagsWithInvalidTags() {
$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.