summaryrefslogtreecommitdiff
path: root/modules/system/system.test
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-11 03:25:36 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-11 03:25:36 +0000
commit819b0e95a9f36fbbc51268e82c5df87b2eb5fb67 (patch)
tree6ede03ab9c6e5ba036347b4acb43839bb27edf28 /modules/system/system.test
parent240fa1b407af70c45fbc133d815ff894e821777c (diff)
downloadbrdo-819b0e95a9f36fbbc51268e82c5df87b2eb5fb67.tar.gz
brdo-819b0e95a9f36fbbc51268e82c5df87b2eb5fb67.tar.bz2
#319699 by Dave Reid: Simplify logic for hiding required modules.
Diffstat (limited to 'modules/system/system.test')
-rw-r--r--modules/system/system.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/system/system.test b/modules/system/system.test
index 52c51db72..dc36470e4 100644
--- a/modules/system/system.test
+++ b/modules/system/system.test
@@ -89,6 +89,18 @@ class EnableDisableCoreTestCase extends DrupalWebTestCase {
}
/**
+ * Assert that core required modules cannot be disabled.
+ */
+ function testDisableRequired() {
+ $required_modules = drupal_required_modules();
+ foreach($required_modules as $module) {
+ // Check to make sure the checkbox for required module is not found.
+ $this->drupalGet('admin/build/modules');
+ $this->assertNoFieldByName('modules[Core][' . $module . '][enable]');
+ }
+ }
+
+ /**
* Assert tables that begin with the specified base table name.
*
* @param string $base_table Begginning of table name to look for.