You are here

public function MigrateMenuLinkLocalizedTest::testMenuLinkLocalized in Drupal 10

Same name in this branch
  1. 10 core/modules/menu_link_content/tests/src/Kernel/Migrate/d6/MigrateMenuLinkLocalizedTest.php \Drupal\Tests\menu_link_content\Kernel\Migrate\d6\MigrateMenuLinkLocalizedTest::testMenuLinkLocalized()
  2. 10 core/modules/menu_link_content/tests/src/Kernel/Migrate/d7/MigrateMenuLinkLocalizedTest.php \Drupal\Tests\menu_link_content\Kernel\Migrate\d7\MigrateMenuLinkLocalizedTest::testMenuLinkLocalized()

Tests migration of menu link localized translations.

File

core/modules/menu_link_content/tests/src/Kernel/Migrate/d6/MigrateMenuLinkLocalizedTest.php, line 50

Class

MigrateMenuLinkLocalizedTest
Tests Menu link localized translation migration.

Namespace

Drupal\Tests\menu_link_content\Kernel\Migrate\d6

Code

public function testMenuLinkLocalized() {

  // A localized menu link.
  $this
    ->assertEntity('463', 'fr', 'fr - Test 1', 'secondary-links', 'fr - Test menu link 1', TRUE, FALSE, [
    'attributes' => [
      'title' => 'fr - Test menu link 1',
    ],
    'langcode' => 'fr',
    'alter' => TRUE,
  ], 'internal:/user/login', -49, 0);
}