function MigrateUrlAliasTestBase::setUp

Same name in other branches
  1. 9 core/modules/path/tests/src/Kernel/Migrate/d7/MigrateUrlAliasTestBase.php \Drupal\Tests\path\Kernel\Migrate\d7\MigrateUrlAliasTestBase::setUp()
  2. 10 core/modules/path/tests/src/Kernel/Migrate/d7/MigrateUrlAliasTestBase.php \Drupal\Tests\path\Kernel\Migrate\d7\MigrateUrlAliasTestBase::setUp()
  3. 11.x core/modules/path/tests/src/Kernel/Migrate/d7/MigrateUrlAliasTestBase.php \Drupal\Tests\path\Kernel\Migrate\d7\MigrateUrlAliasTestBase::setUp()

Overrides MigrateDrupal7TestBase::setUp

2 calls to MigrateUrlAliasTestBase::setUp()
MigrateUrlAliasNoTranslationTest::setUp in core/modules/path/tests/src/Kernel/Migrate/d7/MigrateUrlAliasNoTranslationTest.php
MigrateUrlAliasTest::setUp in core/modules/path/tests/src/Kernel/Migrate/d7/MigrateUrlAliasTest.php
2 methods override MigrateUrlAliasTestBase::setUp()
MigrateUrlAliasNoTranslationTest::setUp in core/modules/path/tests/src/Kernel/Migrate/d7/MigrateUrlAliasNoTranslationTest.php
MigrateUrlAliasTest::setUp in core/modules/path/tests/src/Kernel/Migrate/d7/MigrateUrlAliasTest.php

File

core/modules/path/tests/src/Kernel/Migrate/d7/MigrateUrlAliasTestBase.php, line 32

Class

MigrateUrlAliasTestBase
Tests URL alias migration.

Namespace

Drupal\Tests\path\Kernel\Migrate\d7

Code

protected function setUp() {
    parent::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',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.