function NodeTranslationRedirectTest::setUp

Same name in this branch
  1. 8.9.x core/modules/node/tests/src/Kernel/Migrate/d7/NodeTranslationRedirectTest.php \Drupal\Tests\node\Kernel\Migrate\d7\NodeTranslationRedirectTest::setUp()
Same name in other branches
  1. 9 core/modules/node/tests/src/Kernel/Migrate/d6/NodeTranslationRedirectTest.php \Drupal\Tests\node\Kernel\Migrate\d6\NodeTranslationRedirectTest::setUp()
  2. 9 core/modules/node/tests/src/Kernel/Migrate/d7/NodeTranslationRedirectTest.php \Drupal\Tests\node\Kernel\Migrate\d7\NodeTranslationRedirectTest::setUp()
  3. 10 core/modules/node/tests/src/Kernel/Migrate/d6/NodeTranslationRedirectTest.php \Drupal\Tests\node\Kernel\Migrate\d6\NodeTranslationRedirectTest::setUp()
  4. 10 core/modules/node/tests/src/Kernel/Migrate/d7/NodeTranslationRedirectTest.php \Drupal\Tests\node\Kernel\Migrate\d7\NodeTranslationRedirectTest::setUp()
  5. 11.x core/modules/node/tests/src/Kernel/Migrate/d6/NodeTranslationRedirectTest.php \Drupal\Tests\node\Kernel\Migrate\d6\NodeTranslationRedirectTest::setUp()
  6. 11.x core/modules/node/tests/src/Kernel/Migrate/d7/NodeTranslationRedirectTest.php \Drupal\Tests\node\Kernel\Migrate\d7\NodeTranslationRedirectTest::setUp()

Overrides MigrateDrupal6TestBase::setUp

File

core/modules/node/tests/src/Kernel/Migrate/d6/NodeTranslationRedirectTest.php, line 31

Class

NodeTranslationRedirectTest
Tests node translation redirections.

Namespace

Drupal\Tests\node\Kernel\Migrate\d6

Code

protected function setUp() {
    parent::setUp();
    $this->setUpCurrentUser();
    $this->installEntitySchema('node');
    $this->installConfig([
        'node',
    ]);
    $this->installSchema('node', [
        'node_access',
    ]);
    $this->installSchema('system', [
        'key_value',
    ]);
    $this->migrateUsers(FALSE);
    $this->migrateFields();
    $this->executeMigrations([
        'language',
        'd6_language_types',
        'd6_language_negotiation_settings',
        'd6_node_settings',
        'd6_node',
        'd6_node_translation',
    ]);
}

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