public function MigrateMenuLinkTest::testUndefinedLinkTitle in Zircon Profile 8
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::testUndefinedLinkTitle()
Tests migrating a link with an undefined title attribute.
File
- core/
modules/ menu_link_content/ src/ Tests/ Migrate/ d7/ MigrateMenuLinkTest.php, line 88 - Contains \Drupal\menu_link_content\Tests\Migrate\d7\MigrateMenuLinkTest.
Class
- MigrateMenuLinkTest
- Menu link migration.
Namespace
Drupal\menu_link_content\Tests\Migrate\d7Code
public function testUndefinedLinkTitle() {
Database::getConnection('default', 'migrate')
->update('menu_links')
->fields(array(
'options' => 'a:0:{}',
))
->condition('mlid', 467)
->execute();
$this
->executeMigration('d7_menu_links');
$this
->assertEntity(467, 'Google', 'menu-test-menu', NULL, TRUE, FALSE, [], 'http://google.com', 0);
}