You are here

protected function DateFormatsMachineNameTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 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() {
  parent::setUp();

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