You are here

protected function DateFormatsMachineNameTest::setUp in Drupal 9

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

Overrides BrowserTestBase::setUp

File

core/modules/system/tests/src/Functional/System/DateFormatsMachineNameTest.php, line 22

Class

DateFormatsMachineNameTest
Tests validity of date format machine names.

Namespace

Drupal\Tests\system\Functional\System

Code

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

  // Create a new administrator user for the test.
  $admin = $this
    ->drupalCreateUser([
    'administer site configuration',
  ]);
  $this
    ->drupalLogin($admin);
}