function LegacyMigrateUrlAliasTest::setUp

Same name in this branch
  1. 8.9.x core/modules/path/tests/src/Kernel/Migrate/d6/LegacyMigrateUrlAliasTest.php \Drupal\Tests\path\Kernel\Migrate\d6\LegacyMigrateUrlAliasTest::setUp()

Overrides MigrateUrlAliasTest::setUp

File

core/modules/path/tests/src/Kernel/Migrate/d7/LegacyMigrateUrlAliasTest.php, line 91

Class

LegacyMigrateUrlAliasTest
Tests legacy URL alias migration.

Namespace

Drupal\Tests\path\Kernel\Migrate\d7

Code

protected function setUp() {
    MigrateDrupal7TestBase::setUp();
    $this->installEntitySchema('node');
    $this->installEntitySchema('path_alias');
    $this->installConfig('node');
    $this->installSchema('node', [
        'node_access',
    ]);
    $this->migrateUsers(FALSE);
    $this->migrateContentTypes();
    $this->executeMigrations([
        'language',
        'd7_node',
        'd7_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.