Same filename and directory in other branches
- 8.9.x core/modules/taxonomy/tests/src/Functional/TermCacheTagsTest.php
- 9 core/modules/taxonomy/tests/src/Functional/TermCacheTagsTest.php
Namespace
Drupal\Tests\taxonomy\Functional
File
core/modules/taxonomy/tests/src/Functional/TermCacheTagsTest.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\taxonomy\Functional;
use Drupal\taxonomy\Entity\Vocabulary;
use Drupal\taxonomy\Entity\Term;
use Drupal\Tests\system\Functional\Entity\EntityWithUriCacheTagsTestBase;
class TermCacheTagsTest extends EntityWithUriCacheTagsTestBase {
protected static $modules = [
'taxonomy',
];
protected $defaultTheme = 'stark';
protected function createEntity() {
$vocabulary = Vocabulary::create([
'name' => 'Camelids',
'vid' => 'camelids',
]);
$vocabulary
->save();
$term = Term::create([
'name' => 'Llama',
'vid' => $vocabulary
->id(),
]);
$term
->save();
return $term;
}
}
Classes