You are here

public function PartyUserTestCase::setUp in Party 7

Same name and namespace in other branches
  1. 8.2 modules/party_user/tests/party_user.test \PartyUserTestCase::setUp()

Prepare the site ready for tests.

Overrides DrupalWebTestCase::setUp

File

modules/party_user/tests/party_user.test, line 30
Tests for the Party User module.

Class

PartyUserTestCase
Party User Data Set and Access tests.

Code

public function setUp() {
  parent::setUp('party', 'party_user');

  // Enable any modules required for the test
  $this->privileged_user = $this
    ->drupalCreateUser(array(
    'administer crm settings',
    'administer parties',
  ));
  $this
    ->drupalLogin($this->privileged_user);
}