public function MigrateMenuLinkLocalizedTest::testMenuLinkLocalized in Drupal 9
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\d7Code
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);
}