You are here

public function CronKeyCangeTest::setUp in Cron key change 2.x

Same name and namespace in other branches
  1. 8 tests/src/Functional/CronKeyCangeTest.php \Drupal\Tests\cronkeychange\Functional\CronKeyCangeTest::setUp()

Set up a privileged user.

Overrides BrowserTestBase::setUp

File

tests/src/Functional/CronKeyCangeTest.php, line 34

Class

CronKeyCangeTest
Tests the change cron key.

Namespace

Drupal\Tests\cronkeychange\Functional

Code

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

  // Create and log in our privileged user.
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer site configuration',
  ]);
  $this
    ->drupalLogin($this->adminUser);
}