protected function DrupalWebTestCase::resetAll in SimpleTest 7.2
Same name and namespace in other branches
- 6.2 drupal_web_test_case.php \DrupalWebTestCase::resetAll()
Reset all data structures after having enabled new modules.
This method is called by DrupalWebTestCase::setUp() after enabling the requested modules. It must be called again when additional modules are enabled later.
1 call to DrupalWebTestCase::resetAll()
- DrupalWebTestCase::setUpInstall in ./
drupal_web_test_case.php - Perform Drupal installation.
File
- ./
drupal_web_test_case.php, line 1443 - Provides DrupalTestCase, DrupalUnitTestCase, and DrupalWebTestCase classes.
Class
- DrupalWebTestCase
- Test case for typical Drupal tests.
Code
protected function resetAll() {
// Reset all static variables.
drupal_static_reset();
// Reset the list of enabled modules.
module_list(TRUE);
// Reset cached schema for new database prefix. This must be done before
// drupal_flush_all_caches() so rebuilds can make use of the schema of
// modules enabled on the cURL side.
drupal_get_schema(NULL, TRUE);
// Perform rebuilds and flush remaining caches.
drupal_flush_all_caches();
// Reload global $conf array and permissions.
$this
->refreshVariables();
$this
->checkPermissions(array(), TRUE);
}