function MigrateUpgradeTestBase::setUp

Same name in other branches
  1. 8.9.x 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()
  3. 11.x core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php \Drupal\Tests\migrate_drupal_ui\Functional\MigrateUpgradeTestBase::setUp()

Overrides BrowserTestBase::setUp

16 calls to MigrateUpgradeTestBase::setUp()
FilePathTest::setUp in core/modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php
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/aggregator/tests/src/Functional/migrate_drupal_ui/d6/MultilingualReviewPageTest.php
MultilingualReviewPageTest::setUp in core/modules/migrate_drupal_ui/tests/src/Functional/d7/MultilingualReviewPageTest.php

... See full list

14 methods override MigrateUpgradeTestBase::setUp()
FilePathTest::setUp in core/modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php
MigrateUpgradeExecuteTestBase::setUp in core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php
MultilingualReviewPageTest::setUp in core/modules/aggregator/tests/src/Functional/migrate_drupal_ui/d6/MultilingualReviewPageTest.php
MultilingualReviewPageTest::setUp in core/modules/migrate_drupal_ui/tests/src/Functional/d7/MultilingualReviewPageTest.php
MultilingualReviewPageTest::setUp in core/modules/migrate_drupal_ui/tests/src/Functional/d6/MultilingualReviewPageTest.php

... See full list

File

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

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');
    // Get the current major version.
    [
        $this->destinationSiteVersion,
    ] = explode('.', \Drupal::VERSION, 2);
    // Log in as user 1. Migrations in the UI can only be performed as user 1.
    $this->drupalLogin($this->rootUser);
}

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