You are here

public function CacheTagsInvalidatorTest::testInvalidateTagsWithInvalidTags in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Cache/CacheTagsInvalidatorTest.php \Drupal\Tests\Core\Cache\CacheTagsInvalidatorTest::testInvalidateTagsWithInvalidTags()

@covers ::invalidateTags

@expectedException \AssertionError

File

core/tests/Drupal/Tests/Core/Cache/CacheTagsInvalidatorTest.php, line 25
Contains \Drupal\Tests\Core\Cache\CacheTagsInvalidatorTest.

Class

CacheTagsInvalidatorTest
@coversDefaultClass \Drupal\Core\Cache\CacheTagsInvalidator @group Cache

Namespace

Drupal\Tests\Core\Cache

Code

public function testInvalidateTagsWithInvalidTags() {
  $cache_tags_invalidator = new CacheTagsInvalidator();
  $cache_tags_invalidator
    ->invalidateTags([
    'node' => [
      2,
      3,
      5,
      8,
      13,
    ],
  ]);
}