You are here

protected function LegacyMigrateUrlAliasTest::setUp in Drupal 8

Same name in this branch
  1. 8 core/modules/path/tests/src/Kernel/Migrate/d6/LegacyMigrateUrlAliasTest.php \Drupal\Tests\path\Kernel\Migrate\d6\LegacyMigrateUrlAliasTest::setUp()
  2. 8 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\d6

Code

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');
}