protected function BrowserTestBase::resetAll in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/simpletest/src/BrowserTestBase.php \Drupal\simpletest\BrowserTestBase::resetAll()
Resets all data structures after having enabled new modules.
This method is called by \Drupal\simpletest\BrowserTestBase::setUp() after enabling the requested modules. It must be called again when additional modules are enabled later.
1 call to BrowserTestBase::resetAll()
- BrowserTestBase::installDrupal in core/
modules/ simpletest/ src/ BrowserTestBase.php - Installs Drupal into the Simpletest site.
File
- core/
modules/ simpletest/ src/ BrowserTestBase.php, line 1281 - Contains \Drupal\simpletest\BrowserTestBase.
Class
- BrowserTestBase
- Provides a test case for functional 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();
}