You are here

public function RulesFormsRulesTestCase::setUp in Rules Forms Support 7.2

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

Sets up the test.

Overrides DrupalWebTestCase::setUp

4 calls to RulesFormsRulesTestCase::setUp()
RulesFormsActionsTestCase::setUp in ./rules_forms.test
Enables modules and logs in the privileged user.
RulesFormsAPITestCase::setUp in ./rules_forms.test
Enables modules and logs in the privileged user.
RulesFormsConditionsTestCase::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.
4 methods override RulesFormsRulesTestCase::setUp()
RulesFormsActionsTestCase::setUp in ./rules_forms.test
Enables modules and logs in the privileged user.
RulesFormsAPITestCase::setUp in ./rules_forms.test
Enables modules and logs in the privileged user.
RulesFormsConditionsTestCase::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 193
Rules Forms Support tests.

Class

RulesFormsRulesTestCase
Base class for testing Rules Forms rules.

Code

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