Commit a1346c8e authored by webchick's avatar webchick
Browse files

Issue #1199946 follow-up by dawehner: Fix broken HEAD.

parent 65b155d9
...@@ -100,14 +100,16 @@ function setUp() { ...@@ -100,14 +100,16 @@ function setUp() {
} }
/** /**
* Tests the toolbar_modules_enabled() and toolbar_modules_disabled() hook * Tests the toolbar_modules_installed() and toolbar_modules_uninstalled() hook
* implementations. * implementations.
*/ */
function testModuleStatusChangeSubtreesHashCacheClear() { function testModuleStatusChangeSubtreesHashCacheClear() {
// Disable a module. // Uninstall a module.
$edit = array(); $edit = array();
$edit['modules[Core][taxonomy][enable]'] = FALSE; $edit['uninstall[taxonomy]'] = TRUE;
$this->drupalPostForm('admin/modules', $edit, t('Save configuration')); $this->drupalPostForm('admin/modules/uninstall', $edit, t('Uninstall'));
// Confirm the uninstall form.
$this->drupalPostForm(NULL, array(), t('Uninstall'));
$this->rebuildContainer(); $this->rebuildContainer();
// Assert that the subtrees hash has been altered because the subtrees // Assert that the subtrees hash has been altered because the subtrees
......
...@@ -638,16 +638,16 @@ function _toolbar_get_subtrees_hash() { ...@@ -638,16 +638,16 @@ function _toolbar_get_subtrees_hash() {
} }
/** /**
* Implements hook_modules_enabled(). * Implements hook_modules_installed().
*/ */
function toolbar_modules_enabled($modules) { function toolbar_modules_installed($modules) {
_toolbar_clear_user_cache(); _toolbar_clear_user_cache();
} }
/** /**
* Implements hook_modules_disabled(). * Implements hook_modules_uninstalled().
*/ */
function toolbar_modules_disabled($modules) { function toolbar_modules_uninstalled($modules) {
_toolbar_clear_user_cache(); _toolbar_clear_user_cache();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment