function MigrateMenuLinkLocalizedTest::testMenuLinkLocalized

Same name in this branch
  1. 9 core/modules/menu_link_content/tests/src/Kernel/Migrate/d7/MigrateMenuLinkLocalizedTest.php \Drupal\Tests\menu_link_content\Kernel\Migrate\d7\MigrateMenuLinkLocalizedTest::testMenuLinkLocalized()
Same name in other branches
  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()
  3. 11.x core/modules/menu_link_content/tests/src/Kernel/Migrate/d6/MigrateMenuLinkLocalizedTest.php \Drupal\Tests\menu_link_content\Kernel\Migrate\d6\MigrateMenuLinkLocalizedTest::testMenuLinkLocalized()
  4. 11.x 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);
}

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