You are here

protected function MigrateControllerTest::setUp in Drupal 9

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

Overrides BrowserTestBase::setUp

File

core/modules/migrate_drupal_ui/tests/src/Functional/MigrateControllerTest.php, line 32

Class

MigrateControllerTest
Tests for the MigrateController class.

Namespace

Drupal\Tests\migrate_drupal_ui\Functional

Code

protected function setUp() : void {
  parent::setUp();

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

  // Create a migrate message for testing purposes.
  \Drupal::logger('migrate_drupal_ui')
    ->notice('A test message');
}