function NodeTranslationRedirectTest::setUp

Same name in this branch
  1. 11.x core/modules/node/tests/src/Kernel/Migrate/d6/NodeTranslationRedirectTest.php \Drupal\Tests\node\Kernel\Migrate\d6\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. 8.9.x core/modules/node/tests/src/Kernel/Migrate/d6/NodeTranslationRedirectTest.php \Drupal\Tests\node\Kernel\Migrate\d6\NodeTranslationRedirectTest::setUp()
  4. 8.9.x core/modules/node/tests/src/Kernel/Migrate/d7/NodeTranslationRedirectTest.php \Drupal\Tests\node\Kernel\Migrate\d7\NodeTranslationRedirectTest::setUp()
  5. 10 core/modules/node/tests/src/Kernel/Migrate/d6/NodeTranslationRedirectTest.php \Drupal\Tests\node\Kernel\Migrate\d6\NodeTranslationRedirectTest::setUp()
  6. 10 core/modules/node/tests/src/Kernel/Migrate/d7/NodeTranslationRedirectTest.php \Drupal\Tests\node\Kernel\Migrate\d7\NodeTranslationRedirectTest::setUp()

Overrides MigrateDrupal7TestBase::setUp

File

core/modules/node/tests/src/Kernel/Migrate/d7/NodeTranslationRedirectTest.php, line 36

Class

NodeTranslationRedirectTest
Tests node translation redirects.

Namespace

Drupal\Tests\node\Kernel\Migrate\d7

Code

protected function setUp() : void {
    parent::setUp();
    $this->setUpCurrentUser();
    $this->installSchema('node', [
        'node_access',
    ]);
    $this->migrateUsers(FALSE);
    $this->migrateContentTypes();
    $this->executeMigrations([
        'language',
        'd7_language_types',
        'd7_language_negotiation_settings',
        'd7_node',
        'd7_node_translation',
    ]);
}

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