protected function WebTestBase::resetAll in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/simpletest/src/WebTestBase.php \Drupal\simpletest\WebTestBase::resetAll()
Resets all data structures after having enabled new modules.
This method is called by \Drupal\simpletest\WebTestBase::setUp() after enabling the requested modules. It must be called again when additional modules are enabled later.
40 calls to WebTestBase::resetAll()
- AggregatorAdminTest::testSettingsPage in core/
modules/ aggregator/ src/ Tests/ AggregatorAdminTest.php - Tests the settings form to ensure the correct default values are used.
- CKEditorAdminTest::testExistingFormat in core/
modules/ ckeditor/ src/ Tests/ CKEditorAdminTest.php - Tests configuring a text editor for an existing text format.
- ClassLoaderTest::testClassLoading in core/
modules/ system/ src/ Tests/ Module/ ClassLoaderTest.php - Tests that module-provided classes can be loaded when a module is enabled.
- ClassLoaderTest::testClassLoadingDisabledModules in core/
modules/ system/ src/ Tests/ Module/ ClassLoaderTest.php - Tests that module-provided classes can't be loaded from disabled modules.
- ConfigImportAllTest::testInstallUninstall in core/
modules/ config/ src/ Tests/ ConfigImportAllTest.php - Tests that a fixed set of modules can be installed and uninstalled.
File
- core/
modules/ simpletest/ src/ WebTestBase.php, line 1189 - Contains \Drupal\simpletest\WebTestBase.
Class
- WebTestBase
- Test case for typical Drupal tests.
Namespace
Drupal\simpletestCode
protected function resetAll() {
// Clear all database and static caches and rebuild data structures.
drupal_flush_all_caches();
$this->container = \Drupal::getContainer();
// Reset static variables and reload permissions.
$this
->refreshVariables();
}