You are here

protected function DrupalWebTestCase::setUpVariables in SimpleTest 7.2

Set post-installation variables.

1 call to DrupalWebTestCase::setUpVariables()
DrupalWebTestCase::setUp in ./drupal_web_test_case.php
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
1 method overrides DrupalWebTestCase::setUpVariables()
DrupalCloneTestCase::setUpVariables in ./drupal_web_test_case.php
Set post-installation variables.

File

./drupal_web_test_case.php, line 1392
Provides DrupalTestCase, DrupalUnitTestCase, and DrupalWebTestCase classes.

Class

DrupalWebTestCase
Test case for typical Drupal tests.

Code

protected function setUpVariables($clean_url_original) {

  // Restore necessary variables.
  variable_set('install_task', 'done');
  variable_set('clean_url', $clean_url_original);
  variable_set('site_mail', 'simpletest@example.com');
  variable_set('date_default_timezone', date_default_timezone_get());
}