function DateFormatsMachineNameTest::setUp

Same name in other branches
  1. 9 core/modules/system/tests/src/Functional/System/DateFormatsMachineNameTest.php \Drupal\Tests\system\Functional\System\DateFormatsMachineNameTest::setUp()
  2. 8.9.x core/modules/system/tests/src/Functional/System/DateFormatsMachineNameTest.php \Drupal\Tests\system\Functional\System\DateFormatsMachineNameTest::setUp()
  3. 10 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 24

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);
}

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