function ModuleTestCase::setUp
Overrides DrupalWebTestCase::setUp
1 call to ModuleTestCase::setUp()
- ModuleVersionTestCase::setUp in modules/
system/ system.test - Sets up a Drupal site for running functional and integration tests.
1 method overrides ModuleTestCase::setUp()
- ModuleVersionTestCase::setUp in modules/
system/ system.test - Sets up a Drupal site for running functional and integration tests.
File
-
modules/
system/ system.test, line 14
Class
- ModuleTestCase
- Helper class for module test cases.
Code
function setUp() {
parent::setUp('system_test');
$this->admin_user = $this->drupalCreateUser(array(
'access administration pages',
'administer modules',
));
$this->drupalLogin($this->admin_user);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.