3 namespace Drupal\Tests\taxonomy\Functional;
5 use Drupal\system\Tests\Entity\EntityWithUriCacheTagsTestBase;
6 use Drupal\taxonomy\Entity\Vocabulary;
7 use Drupal\taxonomy\Entity\Term;
10 * Tests the Taxonomy term entity's cache tags.
14 class TermCacheTagsTest extends EntityWithUriCacheTagsTestBase {
19 public static $modules = ['taxonomy'];
24 protected function createEntity() {
25 // Create a "Camelids" vocabulary.
26 $vocabulary = Vocabulary::create([
32 // Create a "Llama" taxonomy term.
33 $term = Term::create([
35 'vid' => $vocabulary->id(),