You are here

protected function PublicationDateTestCase::setUp in Publication Date 7.2

Same name and namespace in other branches
  1. 7 tests/publication_date.test \PublicationDateTestCase::setUp()

Create a user and prepare for testing.

Overrides DrupalWebTestCase::setUp

File

tests/publication_date.test, line 33
Publication Date module tests.

Class

PublicationDateTestCase
Test publication date functionality.

Code

protected function setUp() {
  parent::setUp('publication_date');
  $this->privileged_user = $this
    ->drupalCreateUser(array(
    'create page content',
    'edit own page content',
    'administer nodes',
    'set page published on date',
  ));
  $this
    ->drupalLogin($this->privileged_user);
}