function SimpleTestFunctionalTest::setUp
Overrides DrupalWebTestCase::setUp
File
-
modules/
simpletest/ simpletest.test, line 48
Class
- SimpleTestFunctionalTest
- @file Tests for simpletest.module.
Code
function setUp() {
if (!$this->inCURL()) {
parent::setUp('simpletest');
// Create and login user
$admin_user = $this->drupalCreateUser(array(
'administer unit tests',
));
$this->drupalLogin($admin_user);
}
else {
parent::setUp('non_existent_module');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.