function MigrateMenuLinkLocalizedTest::testMenuLinkLocalized
Same name in this branch
- 9 core/modules/menu_link_content/tests/src/Kernel/Migrate/d6/MigrateMenuLinkLocalizedTest.php \Drupal\Tests\menu_link_content\Kernel\Migrate\d6\MigrateMenuLinkLocalizedTest::testMenuLinkLocalized()
Same name in other branches
- 10 core/modules/menu_link_content/tests/src/Kernel/Migrate/d6/MigrateMenuLinkLocalizedTest.php \Drupal\Tests\menu_link_content\Kernel\Migrate\d6\MigrateMenuLinkLocalizedTest::testMenuLinkLocalized()
- 10 core/modules/menu_link_content/tests/src/Kernel/Migrate/d7/MigrateMenuLinkLocalizedTest.php \Drupal\Tests\menu_link_content\Kernel\Migrate\d7\MigrateMenuLinkLocalizedTest::testMenuLinkLocalized()
- 11.x core/modules/menu_link_content/tests/src/Kernel/Migrate/d6/MigrateMenuLinkLocalizedTest.php \Drupal\Tests\menu_link_content\Kernel\Migrate\d6\MigrateMenuLinkLocalizedTest::testMenuLinkLocalized()
- 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/ 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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.