function 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.
7 calls to DrupalWebTestCase::resetAll()
- CommentFieldsTest::testCommentEnable in modules/
comment/ comment.test - Test that comment module works when enabled after a content module.
- DrupalWebTestCase::setUp in modules/
simpletest/ drupal_web_test_case.php - Sets up a Drupal site for running functional and integration tests.
- ModuleDependencyTestCase::testModuleEnableOrder in modules/
system/ system.test - Tests that module dependencies are enabled in the correct order via the UI. Dependencies should be enabled before their dependents.
- ModuleUnitTest::testModuleInvoke in modules/
simpletest/ tests/ module.test - Test that module_invoke() can load a hook defined in hook_hook_info().
- ModuleUnitTest::testModuleInvokeAll in modules/
simpletest/ tests/ module.test - Test that module_invoke_all() can load a hook defined in hook_hook_info().
File
-
modules/
simpletest/ drupal_web_test_case.php, line 1901
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.