You are here

public function PartyAcquisitionTestCase::setUp in Party 7

Set up the testing environment.

Overrides DrupalWebTestCase::setUp

File

tests/party_acquisition.test, line 26
Acquisition Tests for the Party module.

Class

PartyAcquisitionTestCase
Test Core Party functionality

Code

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

  // Enable any modules required for the test
  // Create a party to have some fun with.
  $this->party = party_create();
  $this->party->label = $this
    ->randomName();
  $this->party->email = $this->party->email . '@example.com';
  $this->party
    ->save();
}