You are here

public function RevisionAllBase::setUp in Revision All 7.2

Implements setUp. Creates a user with 'administer site configuration' permissions as well as any other permissions passed in. Also enables all revision_all settings.

Parameters

array $permissions Additional permission to be granted to the user.:

Overrides DrupalWebTestCase::setUp

4 calls to RevisionAllBase::setUp()
RevisionAllEnableFutureTests::setUp in tests/revision_all.test
Implements setUp();
RevisionAllPreventNodeOverrideTests::setUp in tests/revision_all.test
Implements setUp();
RevisionAllPreventTypeOverrideTests::setUp in tests/revision_all.test
Implements setUp();
RevisionAllTypeRevisioningTests::setUp in tests/revision_all.test
Implements setUp().
4 methods override RevisionAllBase::setUp()
RevisionAllEnableFutureTests::setUp in tests/revision_all.test
Implements setUp();
RevisionAllPreventNodeOverrideTests::setUp in tests/revision_all.test
Implements setUp();
RevisionAllPreventTypeOverrideTests::setUp in tests/revision_all.test
Implements setUp();
RevisionAllTypeRevisioningTests::setUp in tests/revision_all.test
Implements setUp().

File

tests/revision_all.test, line 19
Tests for Revision All module.

Class

RevisionAllBase
Defines a base class of DrupalWebTestCase and does general setup.

Code

public function setUp($permissions = array()) {
  parent::setUp('revision_all', 'revision_all_test');
  $permissions[] = 'administer content types';
  $permissions[] = 'administer site configuration';
  $user = $this
    ->drupalCreateUser($permissions);
  $this
    ->drupalLogin($user);
  $this
    ->saveSettings($this
    ->getSettings());
}