protected function MigrateShortcutSetUsersTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutSetUsersTest.php \Drupal\Tests\shortcut\Kernel\Migrate\d7\MigrateShortcutSetUsersTest::setUp()
- 10 core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutSetUsersTest.php \Drupal\Tests\shortcut\Kernel\Migrate\d7\MigrateShortcutSetUsersTest::setUp()
Overrides MigrateDrupal7TestBase::setUp
File
- core/
modules/ shortcut/ tests/ src/ Kernel/ Migrate/ d7/ MigrateShortcutSetUsersTest.php, line 30
Class
- MigrateShortcutSetUsersTest
- Test shortcut_set_users migration.
Namespace
Drupal\Tests\shortcut\Kernel\Migrate\d7Code
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('shortcut');
$this
->installEntitySchema('menu_link_content');
$this
->installSchema('shortcut', [
'shortcut_set_users',
]);
\Drupal::service('router.builder')
->rebuild();
$this
->migrateUsers(FALSE);
$this
->executeMigration('d7_shortcut_set');
$this
->executeMigration('d7_menu');
$this
->executeMigration('d7_menu_links');
$this
->executeMigration('d7_shortcut');
$this
->executeMigration('d7_shortcut_set_users');
}