You are here

public function PartyAccessTestCase::setUp in Party 8.2

Same name and namespace in other branches
  1. 7 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.

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();
}