summaryrefslogtreecommitdiffstats
path: root/core/modules/simpletest/lib/Drupal/simpletest/UnitTestBase.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/simpletest/lib/Drupal/simpletest/UnitTestBase.php')
-rw-r--r--core/modules/simpletest/lib/Drupal/simpletest/UnitTestBase.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/modules/simpletest/lib/Drupal/simpletest/UnitTestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/UnitTestBase.php
index d7bd225..648aa42 100644
--- a/core/modules/simpletest/lib/Drupal/simpletest/UnitTestBase.php
+++ b/core/modules/simpletest/lib/Drupal/simpletest/UnitTestBase.php
@@ -56,6 +56,9 @@ abstract class UnitTestBase extends TestBase {
$conf = array();
drupal_static_reset();
+ // Enforce an empty module list.
+ module_list(NULL, array());
+
$conf['file_public_path'] = $this->public_files_directory;
// Change the database prefix.