public function PartyUserTestCase::setUp in Party 8.2
Same name and namespace in other branches
- 7 modules/party_user/tests/party_user.test \PartyUserTestCase::setUp()
Prepare the site ready for tests.
File
- modules/
party_user/ tests/ party_user.test, line 30 - Tests for the Party User module.
Class
- PartyUserTestCase
- Party User Data Set and Access tests.
Code
public function setUp() {
parent::setUp('party', 'party_user');
// Enable any modules required for the test
$this->privileged_user = $this
->drupalCreateUser(array(
'administer crm settings',
'administer parties',
));
$this
->drupalLogin($this->privileged_user);
}