function EntityTypeTest::testGetBundleListCacheTags
Tests the ::getBundleListCacheTags() method.
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityTypeTest.php, line 566
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.