summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/module_test.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/simpletest/tests/module_test.module')
-rw-r--r--modules/simpletest/tests/module_test.module20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/simpletest/tests/module_test.module b/modules/simpletest/tests/module_test.module
index 6829026a2..b1f7361a0 100644
--- a/modules/simpletest/tests/module_test.module
+++ b/modules/simpletest/tests/module_test.module
@@ -55,5 +55,25 @@ function module_test_hook_info() {
* Implements hook_modules_enabled().
*/
function module_test_modules_enabled($modules) {
+ // Record the ordered list of modules that were passed in to this hook so we
+ // can check that the modules were enabled in the correct sequence.
variable_set('test_module_enable_order', $modules);
}
+
+/**
+ * Implements hook_modules_disabled().
+ */
+function module_test_modules_disabled($modules) {
+ // Record the ordered list of modules that were passed in to this hook so we
+ // can check that the modules were disabled in the correct sequence.
+ variable_set('test_module_disable_order', $modules);
+}
+
+/**
+ * Implements hook_modules_uninstalled().
+ */
+function module_test_modules_uninstalled($modules) {
+ // Record the ordered list of modules that were passed in to this hook so we
+ // can check that the modules were uninstalled in the correct sequence.
+ variable_set('test_module_uninstall_order', $modules);
+}