You are here

public function PartyHatTestCase::setUp in Party 8.2

Same name and namespace in other branches
  1. 7 modules/party_hat/tests/party_hat.test \PartyHatTestCase::setUp()

Set up the site ready to run tests. Creates a user with permissions required to carry out the tests.

File

modules/party_hat/tests/party_hat.test, line 34
Tests for the Party Hat module.

Class

PartyHatTestCase
Party Hat CRUD and Data Set tests.

Code

public function setUp() {
  parent::setUp('party', 'party_hat', 'party_profile');
  $this->privileged_user = $this
    ->drupalCreateUser(array(
    'administer crm settings',
    'administer parties',
    'administer hats',
    'administer profiles',
    'administer profile types',
  ));
  $this
    ->drupalLogin($this->privileged_user);
}