You are here

protected function DateTimeTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 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() {
  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');
}