1 backdrop_web_test_case.php protected BackdropWebTestCase::resetAll()

Reset all data structures after having enabled new modules.

This method is called by BackdropWebTestCase::setUp() after enabling the requested modules. It must be called again when additional modules are enabled later.

File

core/modules/simpletest/backdrop_web_test_case.php, line 1822

Class

BackdropWebTestCase
Test case for typical Backdrop tests.

Code

protected function resetAll() {
  // Reset all static variables.
  backdrop_static_reset();
  // Reset the list of enabled modules.
  module_list(TRUE);

  // Reset cached schema for new database prefix. This must be done before
  // backdrop_flush_all_caches() so rebuilds can make use of the schema of
  // modules enabled on the cURL side.
  backdrop_get_schema(NULL, TRUE);

  // Perform rebuilds and flush remaining caches.
  backdrop_flush_all_caches();

  // Reload global $conf array and permissions.
  $this->refreshVariables();
  $this->checkPermissions(array(), TRUE);
}