public function MigrateMenuLinkTest::testMenuLinks in Zircon Profile 8
Same name in this branch
- 8 core/modules/menu_link_content/src/Tests/Migrate/d6/MigrateMenuLinkTest.php \Drupal\menu_link_content\Tests\Migrate\d6\MigrateMenuLinkTest::testMenuLinks()
- 8 core/modules/menu_link_content/src/Tests/Migrate/d7/MigrateMenuLinkTest.php \Drupal\menu_link_content\Tests\Migrate\d7\MigrateMenuLinkTest::testMenuLinks()
Same name and namespace in other branches
- 8.0 core/modules/menu_link_content/src/Tests/Migrate/d7/MigrateMenuLinkTest.php \Drupal\menu_link_content\Tests\Migrate\d7\MigrateMenuLinkTest::testMenuLinks()
Tests migration of menu links.
File
- core/
modules/ menu_link_content/ src/ Tests/ Migrate/ d7/ MigrateMenuLinkTest.php, line 78 - Contains \Drupal\menu_link_content\Tests\Migrate\d7\MigrateMenuLinkTest.
Class
- MigrateMenuLinkTest
- Menu link migration.
Namespace
Drupal\menu_link_content\Tests\Migrate\d7Code
public function testMenuLinks() {
$this
->executeMigration('d7_menu_links');
$this
->assertEntity(467, 'Google', 'menu-test-menu', 'Google', TRUE, FALSE, [
'attributes' => [
'title' => 'Google',
],
], 'http://google.com', 0);
$this
->assertEntity(468, 'Yahoo', 'menu-test-menu', 'Yahoo', TRUE, FALSE, [
'attributes' => [
'title' => 'Yahoo',
],
], 'http://yahoo.com', 0);
$this
->assertEntity(469, 'Bing', 'menu-test-menu', 'Bing', TRUE, FALSE, [
'attributes' => [
'title' => 'Bing',
],
], 'http://bing.com', 0);
}