diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-08-22 14:55:29 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-08-22 14:55:29 +0000 |
commit | 40af7785cf757f0405e2f9a4690ab259bf5576d6 (patch) | |
tree | 107922b2dc2d4f6e3ee350e4a2d2a5c3e1077030 /modules | |
parent | 9442cbbf77a75585d4efe0c9a6fe8f3c1d121fe4 (diff) | |
download | brdo-40af7785cf757f0405e2f9a4690ab259bf5576d6.tar.gz brdo-40af7785cf757f0405e2f9a4690ab259bf5576d6.tar.bz2 |
- Patch #877690 by catch, das-peter, mfer, Damien Tournoud: cannot upgrade Drupal core if the comment module is enabled.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/comment/comment.install | 2 | ||||
-rw-r--r-- | modules/system/system.install | 9 | ||||
-rw-r--r-- | modules/system/system.test | 25 |
3 files changed, 1 insertions, 35 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install index 964927ad5..730211bc6 100644 --- a/modules/comment/comment.install +++ b/modules/comment/comment.install @@ -90,7 +90,7 @@ function comment_update_dependencies() { ); // Comment update 7012 creates the comment body field and therefore must run - // after all entities have been updated. + // after text module has been enabled and entities have been updated. $dependencies['comment'][7012] = array( 'system' => 7021, ); diff --git a/modules/system/system.install b/modules/system/system.install index 8774a7d74..67ef33777 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -416,15 +416,6 @@ function system_requirements($phase) { ); continue; } - // Check for a disabled dependency. - if (!$required_file->status) { - $requirements["$module-$required_module"] = array( - 'title' => $t('Unresolved dependency'), - 'description' => $t('@name requires this module.', array('@name' => $name)), - 'value' => $t('@required_name (Disabled)', array('@required_name' => $required_name)), - 'severity' => REQUIREMENT_ERROR, - ); - } } } } diff --git a/modules/system/system.test b/modules/system/system.test index 1e5777c3b..aff5749f7 100644 --- a/modules/system/system.test +++ b/modules/system/system.test @@ -1717,31 +1717,6 @@ class UpdateScriptFunctionalTest extends DrupalWebTestCase { } /** - * Tests the detection of requirements for the update script to proceed. - */ - function testUpdateRequirements() { - $this->drupalLogin($this->update_user); - $this->drupalGet($this->update_url, array('external' => TRUE)); - $this->assertResponse(200); - // Test if disabling a module that another enabled module depends on will - // prevent the update from proceeding. - module_disable(array('block'), FALSE); - $this->assertFalse(module_exists('block'), t('Block module is disabled.')); - $this->assertTrue(module_exists('dashboard'), t('Dashboard module is enabled.')); - $this->drupalGet($this->update_url, array('external' => TRUE)); - $this->assertText(t('Unresolved dependency'), t('The update process cannot proceed when a module dependency is not enabled.')); - - // Test if modules required by the current install profile are not required - // to be enabled for an update to proceed. - module_enable(array('block')); - $this->assertTrue(module_exists('block'), t('Block module is enabled.')); - module_disable(array('overlay')); - $this->assertFalse(module_exists('overlay'), t('Overlay module is disabled.')); - $this->drupalGet($this->update_url, array('external' => TRUE)); - $this->assertNoText(t('Unresolved dependency'), t('The update process can proceed when modules from the install profile are disabled.')); - } - - /** * Tests the effect of using the update script on the theme system. */ function testThemeSystem() { |