You are here

protected function NodewordsEntitiesTest::setUp in Metatag 8

Overrides MigrateDrupal6TestBase::setUp

File

tests/src/Kernel/Migrate/d6/NodewordsEntitiesTest.php, line 78

Class

NodewordsEntitiesTest
Tests migration of per-entity data from Nodewords-D6.

Namespace

Drupal\Tests\metatag\Kernel\Migrate\d6

Code

protected function setUp() {
  parent::setUp();
  $this
    ->loadFixture(__DIR__ . '/../../../../fixtures/d6_nodewords.php');
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('comment');
  $this
    ->installEntitySchema('taxonomy_term');
  $this
    ->installEntitySchema('menu_link_content');
  $this
    ->installConfig(static::$modules);
  $this
    ->installSchema('user', [
    'users_data',
  ]);
  $this
    ->installSchema('node', [
    'node_access',
  ]);
  $this
    ->installSchema('system', [
    'sequences',
  ]);
  $this
    ->installEntitySchema('metatag_defaults');
  $this
    ->executeMigrations([
    'd6_nodewords_field',
    'd6_node_type',
    'd6_taxonomy_vocabulary',
    'd6_nodewords_field',
    'd6_nodewords_field_instance',
    'd6_filter_format',
    'd6_user_role',
    'd6_user',
    'd6_comment_type',
    'd6_field',
    'd6_field_instance',
  ]);
  $this
    ->fileMigrationSetup();
  $this
    ->executeMigrations([
    'd6_node_settings',
    'd6_node:story',
    'd6_node:article',
    'd6_node:forum',
    'd6_node:employee',
    'd6_node:company',
    'd6_taxonomy_term',
  ]);
}