You are here

public function AccessSchemeInterfaceTest::setUp in Access Control Kit 7

Overrides DrupalWebTestCase::setUp().

Overrides DrupalWebTestCase::setUp

File

./access.test, line 217
Tests for the access control kit module.

Class

AccessSchemeInterfaceTest
Tests the access scheme interface.

Code

public function setUp() {

  // Enable the access control kit module.
  parent::setUp(array(
    'access',
  ));

  // Create and log in our admin user.
  $this->adminUser = $this
    ->drupalCreateUser(array(
    'administer access schemes',
  ));
  $this
    ->drupalLogin($this->adminUser);

  // Create a user role for use in the access scheme.
  $this->ackRoleRid = $this
    ->drupalCreateRole(array(
    'access content',
  ));
}