function LegacyMigrateUrlAliasTest::setUp
Same name in this branch
- 8.9.x core/modules/path/tests/src/Kernel/Migrate/d7/LegacyMigrateUrlAliasTest.php \Drupal\Tests\path\Kernel\Migrate\d7\LegacyMigrateUrlAliasTest::setUp()
Overrides MigrateUrlAliasTest::setUp
File
-
core/
modules/ path/ tests/ src/ Kernel/ Migrate/ d6/ LegacyMigrateUrlAliasTest.php, line 96
Class
- LegacyMigrateUrlAliasTest
- Tests legacy URL alias migration.
Namespace
Drupal\Tests\path\Kernel\Migrate\d6Code
protected function setUp() {
MigrateDrupal6TestBase::setUp();
$this->installEntitySchema('node');
$this->installEntitySchema('path_alias');
$this->installConfig([
'node',
]);
$this->installSchema('node', [
'node_access',
]);
$this->migrateUsers(FALSE);
$this->migrateFields();
$this->executeMigrations([
'language',
'd6_node_settings',
'd6_node',
'd6_node_translation',
]);
$this->executeMigration(\Drupal::service('plugin.manager.migration')->createStubMigration($this->stubMigration));
$this->addExpectedDeprecationMessage('UrlAlias is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use the entity:path_alias destination instead. See https://www.drupal.org/node/3013865');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.