You are here

public function PartyPrimaryFieldsTestCase::setUp in Party 7

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_primary_fields.test, line 34
Access Tests for the Party module.

Class

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

  // Don't pull the user name from the party for this test.
  variable_set('party_user_format_username', FALSE);
}