function CacheTest::testBuildTags

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/Core/Cache/CacheTest.php \Drupal\Tests\Core\Cache\CacheTest::testBuildTags()
  2. 9 core/tests/Drupal/Tests/Core/Cache/CacheTest.php \Drupal\Tests\Core\Cache\CacheTest::testBuildTags()
  3. 8.9.x core/tests/Drupal/Tests/Core/Cache/CacheTest.php \Drupal\Tests\Core\Cache\CacheTest::testBuildTags()
  4. main core/tests/Drupal/Tests/Core/Cache/CacheTest.php \Drupal\Tests\Core\Cache\CacheTest::testBuildTags()

Tests build tags.

Attributes

#[DataProvider('buildTagsProvider')]

File

core/tests/Drupal/Tests/Core/Cache/CacheTest.php, line 191

Class

CacheTest
Tests Drupal\Core\Cache\Cache.

Namespace

Drupal\Tests\Core\Cache

Code

public function testBuildTags($prefix, array $suffixes, array $expected, $glue = ':') : void {
  $this->assertEquals($expected, Cache::buildTags($prefix, $suffixes, $glue));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.