You are here

public function ReferenceMigratorTest::setUp in Term reference change 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/ReferenceMigratorTest.php, line 64

Class

ReferenceMigratorTest
Tests that references are migrated.

Namespace

Drupal\Tests\term_reference_change\Kernel

Code

public function setUp() {
  parent::setUp();
  $this
    ->installConfig([
    'filter',
  ]);
  $this
    ->installSchema('system', 'sequences');
  $this
    ->installSchema('node', 'node_access');
  $this
    ->installEntitySchema('taxonomy_term');
  $this
    ->installEntitySchema('taxonomy_vocabulary');
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('node');
  $this
    ->installConfig('node');
  $this
    ->setUpContentType('page', 'field_terms');
  $this->entityTypeManager = \Drupal::entityTypeManager();
  $this->vocabulary = $this
    ->createVocabulary();
  $this->termStorage = $this->entityTypeManager
    ->getStorage('taxonomy_term');
}