function MigrateMenuLinkLocalizedTest::setUp

Same name in this branch
  1. 11.x core/modules/menu_link_content/tests/src/Kernel/Migrate/d6/MigrateMenuLinkLocalizedTest.php \Drupal\Tests\menu_link_content\Kernel\Migrate\d6\MigrateMenuLinkLocalizedTest::setUp()
Same name in other branches
  1. 9 core/modules/menu_link_content/tests/src/Kernel/Migrate/d6/MigrateMenuLinkLocalizedTest.php \Drupal\Tests\menu_link_content\Kernel\Migrate\d6\MigrateMenuLinkLocalizedTest::setUp()
  2. 9 core/modules/menu_link_content/tests/src/Kernel/Migrate/d7/MigrateMenuLinkLocalizedTest.php \Drupal\Tests\menu_link_content\Kernel\Migrate\d7\MigrateMenuLinkLocalizedTest::setUp()
  3. 10 core/modules/menu_link_content/tests/src/Kernel/Migrate/d6/MigrateMenuLinkLocalizedTest.php \Drupal\Tests\menu_link_content\Kernel\Migrate\d6\MigrateMenuLinkLocalizedTest::setUp()
  4. 10 core/modules/menu_link_content/tests/src/Kernel/Migrate/d7/MigrateMenuLinkLocalizedTest.php \Drupal\Tests\menu_link_content\Kernel\Migrate\d7\MigrateMenuLinkLocalizedTest::setUp()

Overrides MigrateDrupal7TestBase::setUp

File

core/modules/menu_link_content/tests/src/Kernel/Migrate/d7/MigrateMenuLinkLocalizedTest.php, line 33

Class

MigrateMenuLinkLocalizedTest
Tests Menu link localized translation migration.

Namespace

Drupal\Tests\menu_link_content\Kernel\Migrate\d7

Code

protected function setUp() : void {
    parent::setUp();
    $this->executeMigrations([
        'language',
    ]);
    $this->installEntitySchema('menu_link_content');
    $this->executeMigrations([
        'd7_menu',
        'd7_language_content_menu_settings',
        'd7_menu_links',
        'd7_menu_links_localized',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.