You are here

public function EntityTest::setUp in Token 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/EntityTest.php, line 27

Class

EntityTest
Tests entity tokens.

Namespace

Drupal\Tests\token\Kernel

Code

public function setUp() {
  parent::setUp();

  // Create the default tags vocabulary.
  $vocabulary = Vocabulary::create([
    'name' => 'Tags',
    'vid' => 'tags',
  ]);
  $vocabulary
    ->save();
  $this
    ->installEntitySchema('taxonomy_term');
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('node');
  $this->vocab = $vocabulary;
}