summaryrefslogtreecommitdiff
path: root/modules/simpletest
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-11-24 16:47:44 +0000
committerDries Buytaert <dries@buytaert.net>2010-11-24 16:47:44 +0000
commitc76655c98bc19acd2a7a023d23bb23564f5fa777 (patch)
treededcdad2130dfd410363ec1b00023ec69ac53762 /modules/simpletest
parentb7459d8eb3def52ecdd35c65a55fac7e999f6cde (diff)
downloadbrdo-c76655c98bc19acd2a7a023d23bb23564f5fa777.tar.gz
brdo-c76655c98bc19acd2a7a023d23bb23564f5fa777.tar.bz2
- Patch #794936 by c960657, amateescu: system_rebuild_module_data() called twice on admin/build/modules.
Diffstat (limited to 'modules/simpletest')
-rw-r--r--modules/simpletest/tests/module.test2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/simpletest/tests/module.test b/modules/simpletest/tests/module.test
index e8da1a2de..d3e3dbf1b 100644
--- a/modules/simpletest/tests/module.test
+++ b/modules/simpletest/tests/module.test
@@ -127,6 +127,7 @@ class ModuleUnitTest extends DrupalWebTestCase {
// First, create a fake missing dependency. Forum depends on poll, which
// depends on a made-up module, foo. Nothing should be installed.
variable_set('dependency_test', 'missing dependency');
+ drupal_static_reset('system_rebuild_module_data');
$result = module_enable(array('forum'));
$this->assertFalse($result, t('module_enable() returns FALSE if dependencies are missing.'));
$this->assertFalse(module_exists('forum'), t('module_enable() aborts if dependencies are missing.'));
@@ -134,6 +135,7 @@ class ModuleUnitTest extends DrupalWebTestCase {
// Now, fix the missing dependency. Forum module depends on poll, but poll
// depends on the PHP module. module_enable() should work.
variable_set('dependency_test', 'dependency');
+ drupal_static_reset('system_rebuild_module_data');
$result = module_enable(array('forum'));
$this->assertTrue($result, t('module_enable() returns the correct value.'));
// Verify that the fake dependency chain was installed.