You are here

protected function MigrateMenuLinkTest::setUp in Drupal 10

Same name in this branch
  1. 10 core/modules/menu_link_content/tests/src/Kernel/Migrate/d6/MigrateMenuLinkTest.php \Drupal\Tests\menu_link_content\Kernel\Migrate\d6\MigrateMenuLinkTest::setUp()
  2. 10 core/modules/menu_link_content/tests/src/Kernel/Migrate/d7/MigrateMenuLinkTest.php \Drupal\Tests\menu_link_content\Kernel\Migrate\d7\MigrateMenuLinkTest::setUp()
Same name and namespace in other branches
  1. 8 core/modules/menu_link_content/tests/src/Kernel/Migrate/d7/MigrateMenuLinkTest.php \Drupal\Tests\menu_link_content\Kernel\Migrate\d7\MigrateMenuLinkTest::setUp()
  2. 9 core/modules/menu_link_content/tests/src/Kernel/Migrate/d7/MigrateMenuLinkTest.php \Drupal\Tests\menu_link_content\Kernel\Migrate\d7\MigrateMenuLinkTest::setUp()

Overrides MigrateDrupal7TestBase::setUp

File

core/modules/menu_link_content/tests/src/Kernel/Migrate/d7/MigrateMenuLinkTest.php, line 37

Class

MigrateMenuLinkTest
Menu link migration.

Namespace

Drupal\Tests\menu_link_content\Kernel\Migrate\d7

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->setUpCurrentUser();
  $this
    ->installEntitySchema('menu_link_content');
  $this
    ->installSchema('node', [
    'node_access',
  ]);
  $this
    ->installConfig(static::$modules);
  $this
    ->migrateUsers(FALSE);
  $this
    ->migrateContentTypes();
  $this
    ->executeMigrations([
    'language',
    'd7_language_content_settings',
    'd7_node',
    'd7_node_translation',
    'd7_menu',
    'd7_menu_links',
    'node_translation_menu_links',
  ]);
}