You are here

public function RulesFormsRulesTestCase::setUp in Rules Forms Support 7

Same name and namespace in other branches
  1. 7.2 rules_forms.test \RulesFormsRulesTestCase::setUp()

Sets up the test.

Overrides DrupalWebTestCase::setUp

2 calls to RulesFormsRulesTestCase::setUp()
RulesFormsAPITestCase::setUp in ./rules_forms.test
Enables modules and logs in the privileged user.
RulesFormsEventsTestCase::setUp in ./rules_forms.test
Enables modules and logs in the privileged user.
2 methods override RulesFormsRulesTestCase::setUp()
RulesFormsAPITestCase::setUp in ./rules_forms.test
Enables modules and logs in the privileged user.
RulesFormsEventsTestCase::setUp in ./rules_forms.test
Enables modules and logs in the privileged user.

File

./rules_forms.test, line 206
Stores tests related to Rules Form.

Class

RulesFormsRulesTestCase
Base class for testing Rules Forms rules.

Code

public function setUp() {
  parent::setUp('rules_forms', 'rules');
  $this->user = $this
    ->drupalCreateUser(array(
    'administer nodes',
    'access content',
    'create article content',
    'administer rules forms rules',
    'administer rules forms',
    'administer site configuration',
  ));
  $this
    ->drupalLogin($this->user);
}