public function TaxonomyTest::setUp in Token 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ TaxonomyTest.php, line 29
Class
- TaxonomyTest
- Tests taxonomy tokens.
Namespace
Drupal\Tests\token\KernelCode
public function setUp() {
parent::setUp();
$this
->installEntitySchema('taxonomy_term');
// Create the default tags vocabulary.
$vocabulary = Vocabulary::create([
'name' => 'Tags',
'vid' => 'tags',
]);
$vocabulary
->save();
$this->vocab = $vocabulary;
}