protected function WebTestBase::resetAll

Reset 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.

18 calls to WebTestBase::resetAll()

File

drupal/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php, line 928
Definition of Drupal\simpletest\WebTestBase.

Class

WebTestBase
Test case for typical Drupal tests.

Namespace

Drupal\simpletest

Code

protected function resetAll() {

  // Clear all database and static caches and rebuild data structures.
  drupal_flush_all_caches();
  $this->container = \Drupal::getContainer();

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