function EntityTypeTest::testGetBundleListCacheTags
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php \Drupal\Tests\Core\Entity\EntityTypeTest::testGetBundleListCacheTags()
Tests the ::getBundleListCacheTags() method.
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityTypeTest.php, line 587
Class
Namespace
Drupal\Tests\Core\EntityCode
public function testGetBundleListCacheTags() : void {
$entity_type = $this->setUpEntityType([
'entity_keys' => [
'id' => 'id',
],
]);
$bundle = $this->randomMachineName();
$this->assertEquals([
$entity_type->id() . '_list:' . $bundle,
], $entity_type->getBundleListCacheTags($bundle));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.