public function PMPersonTestCase::setUp in Drupal PM (Project Management) 7
Same name and namespace in other branches
- 8 pmperson/pmperson.test \PMPersonTestCase::setUp()
- 7.3 pmperson/pmperson.test \PMPersonTestCase::setUp()
- 7.2 pmperson/pmperson.test \PMPersonTestCase::setUp()
Set up environment for test.
Overrides DrupalWebTestCase::setUp
File
- pmperson/
pmperson.test, line 26 - Test definitions for the PM Person module.
Class
- PMPersonTestCase
- Test definition for the PM Person module.
Code
public function setUp() {
parent::setUp('pm', 'pmorganization', 'pmperson');
$privileged_user = $this
->drupalCreateUser(array(
'Project Management Organization: add',
'Project Management Organization: view all',
'Project Management Person: add',
));
$this
->drupalLogin($privileged_user);
}