public function DateToolsTest::setUp in Date 8
@todo.
Overrides WebTestBase::setUp
File
- date_tools/
lib/ Drupal/ date_tools/ Tests/ DateToolsTest.php, line 33 - Tests for Date Tools.
Class
Namespace
Drupal\date_tools\TestsCode
public function setUp() {
// Load the date_api module.
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');
}