You are here

public function DateRepeatFormTest::setUp in Date 8

Implements setUp().

Overrides WebTestBase::setUp

File

date_repeat/lib/Drupal/date_repeat/Tests/DateRepeatFormTest.php, line 33
Test Date Repeat form.

Class

DateRepeatFormTest

Namespace

Drupal\date_repeat\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',
    'view date repeats',
  ));
  $this
    ->drupalLogin($this->privileged_user);
  variable_set('date_format_short', 'Y-m-d H:i');
}