You are here

public function PartyAccessTestCase::setUp in Party 7

Same name and namespace in other branches
  1. 8.2 tests/party_access.test \PartyAccessTestCase::setUp()

Set up the testing environment.

Install party and party_profile, create a profile2 data set to test with, and create an empty party.

Overrides DrupalWebTestCase::setUp

File

tests/party_access.test, line 29
Access Tests for the Party module.

Class

PartyAccessTestCase
Test Core Party functionality

Code

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

  // Enable any modules required for the test
  // Set up a data set to test permission on.
  $this->data_set_name = 'profile2_' . $this
    ->createTestProfile2();

  // Create a party to have some fun with.
  $this->party = party_create();
  $this->party
    ->save();
}