You are here

public function MigrateMenuLinkTranslationTest::testMenuLinkTranslation in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/menu_link_content/tests/src/Kernel/Migrate/d7/MigrateMenuLinkTranslationTest.php \Drupal\Tests\menu_link_content\Kernel\Migrate\d7\MigrateMenuLinkTranslationTest::testMenuLinkTranslation()

Tests migration of menu link translations.

File

core/modules/menu_link_content/tests/src/Kernel/Migrate/d7/MigrateMenuLinkTranslationTest.php, line 47

Class

MigrateMenuLinkTranslationTest
Tests Menu link translation migration.

Namespace

Drupal\Tests\menu_link_content\Kernel\Migrate\d7

Code

public function testMenuLinkTranslation() {
  $this
    ->assertEntity(467, 'fr', 'fr - Google', 'menu-test-menu', 'fr - Google description', TRUE, FALSE, [
    'attributes' => [
      'title' => 'Google',
    ],
  ], 'http://google.com', 0);
}