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.

13 calls to WebTestBase::resetAll()
AggregatorRenderingTest::testBlockLinks in drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorRenderingTest.php
Add a feed block to the page and checks its links.
BlockTest::testBlockRehash in drupal/core/modules/block/lib/Drupal/block/Tests/BlockTest.php
Test _block_rehash().
ClassLoaderTest::testClassLoading in drupal/core/modules/system/lib/Drupal/system/Tests/Module/ClassLoaderTest.php
Tests that module-provided classes can be loaded when a module is enabled.
CommentFieldsTest::testCommentEnable in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentFieldsTest.php
Tests that comment module works when enabled after a content module.
DependencyTest::testModuleEnableOrder in drupal/core/modules/system/lib/Drupal/system/Tests/Module/DependencyTest.php
Tests that module dependencies are enabled in the correct order via the UI. Dependencies should be enabled before their dependents.

... See full list

File

drupal/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php, line 786
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();

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