You are here

public function DateUITest::setUp in Date 8

Same name in this branch
  1. 8 lib/Drupal/date/Tests/DateUITest.php \Drupal\date\Tests\DateUITest::setUp()
  2. 8 date_field/lib/Drupal/date_field/Tests/DateUITest.php \Drupal\date\Tests\DateUITest::setUp()

@todo.

Overrides WebTestBase::setUp

File

date_field/lib/Drupal/date_field/Tests/DateUITest.php, line 33
Test date UI.

Class

DateUITest

Namespace

Drupal\date\Tests

Code

public function setUp() {
  parent::setUp();

  // Create and log in our privileged user.
  $this->privileged_user = $this
    ->drupalCreateUser(array(
    'administer content types',
    'administer nodes',
    'bypass node access',
    'administer date tools',
  ));
  $this
    ->drupalLogin($this->privileged_user);
  variable_set('date_format_long', 'D, m/d/Y - H:i');
}