You are here

protected function DateTimeTest::setUp in Drupal 10

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

Overrides BrowserTestBase::setUp

File

core/modules/system/tests/src/Functional/System/DateTimeTest.php, line 37

Class

DateTimeTest
Configure date and time settings. Test date formatting and time zone handling, including daylight saving time.

Namespace

Drupal\Tests\system\Functional\System

Code

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

  // Create admin user and log in admin user.
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'administer site configuration',
    'administer content types',
    'administer nodes',
    'administer node fields',
    'administer node form display',
    'administer node display',
  ]));
  $this
    ->drupalPlaceBlock('local_actions_block');
}