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()
Same name and namespace in other branches
  1. 9 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/d7/MigrateMenuLinkLocalizedTest.php, line 47

Class

MigrateMenuLinkLocalizedTest
Tests Menu link localized translation migration.

Namespace

Drupal\Tests\menu_link_content\Kernel\Migrate\d7

Code

public function testMenuLinkLocalized() {

  // A translate and localize menu, menu-test-menu.
  $this
    ->assertEntity(468, 'en', 'Yahoo', 'menu-test-menu', 'english description', TRUE, FALSE, [
    'attributes' => [
      'title' => 'english description',
    ],
    'alter' => TRUE,
  ], 'http://yahoo.com', 0);
  $this
    ->assertEntity(468, 'fr', 'fr - Yahoo', 'menu-test-menu', 'fr - description', TRUE, FALSE, [
    'attributes' => [
      'title' => 'english description',
    ],
    'alter' => TRUE,
  ], 'http://yahoo.com', 0);
  $this
    ->assertEntity(468, 'is', 'is - Yahoo', 'menu-test-menu', 'is - description', TRUE, FALSE, [
    'attributes' => [
      'title' => 'english description',
    ],
    'alter' => TRUE,
  ], 'http://yahoo.com', 0);
}