public function MigrateShortcutTest::testShortcutMigration in Drupal 8
Same name and namespace in other branches
- 9 core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutTest.php \Drupal\Tests\shortcut\Kernel\Migrate\d7\MigrateShortcutTest::testShortcutMigration()
- 10 core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutTest.php \Drupal\Tests\shortcut\Kernel\Migrate\d7\MigrateShortcutTest::testShortcutMigration()
Test the shortcut migration.
File
- core/
modules/ shortcut/ tests/ src/ Kernel/ Migrate/ d7/ MigrateShortcutTest.php, line 66
Class
- MigrateShortcutTest
- Test shortcut menu links migration to Shortcut entities.
Namespace
Drupal\Tests\shortcut\Kernel\Migrate\d7Code
public function testShortcutMigration() {
// Check if the 4 shortcuts were migrated correctly.
$this
->assertEntity(1, 'Add content', '-20', '/node/add');
$this
->assertEntity(2, 'Find content', '-19', '/admin/content');
$this
->assertEntity(3, 'Help', '-49', '/admin/help');
$this
->assertEntity(4, 'People', '-50', '/admin/people');
}