You are here

protected function MigrateUpgradeTestBase::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php \Drupal\Tests\migrate_drupal_ui\Functional\MigrateUpgradeTestBase::setUp()
  2. 10 core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php \Drupal\Tests\migrate_drupal_ui\Functional\MigrateUpgradeTestBase::setUp()

Overrides BrowserTestBase::setUp

4 calls to MigrateUpgradeTestBase::setUp()
MigrateUpgradeExecuteTestBase::setUp in core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php
MultilingualReviewPageTest::setUp in core/modules/migrate_drupal_ui/tests/src/Functional/d6/MultilingualReviewPageTest.php
MultilingualReviewPageTest::setUp in core/modules/migrate_drupal_ui/tests/src/Functional/d7/MultilingualReviewPageTest.php
NoMultilingualReviewPageTest::setUp in core/modules/migrate_drupal_ui/tests/src/Functional/d6/NoMultilingualReviewPageTest.php
4 methods override MigrateUpgradeTestBase::setUp()
MigrateUpgradeExecuteTestBase::setUp in core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php
MultilingualReviewPageTest::setUp in core/modules/migrate_drupal_ui/tests/src/Functional/d6/MultilingualReviewPageTest.php
MultilingualReviewPageTest::setUp in core/modules/migrate_drupal_ui/tests/src/Functional/d7/MultilingualReviewPageTest.php
NoMultilingualReviewPageTest::setUp in core/modules/migrate_drupal_ui/tests/src/Functional/d6/NoMultilingualReviewPageTest.php

File

core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php, line 37

Class

MigrateUpgradeTestBase
Provides a base class for testing migration upgrades in the UI.

Namespace

Drupal\Tests\migrate_drupal_ui\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->createMigrationConnection();
  $this->sourceDatabase = Database::getConnection('default', 'migrate_drupal_ui');

  // Log in as user 1. Migrations in the UI can only be performed as user 1.
  $this
    ->drupalLogin($this->rootUser);
}