summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/modules/simpletest/tests/common_test_cron_helper.module
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.26/modules/simpletest/tests/common_test_cron_helper.module')
-rw-r--r--kolab.org/www/drupal-7.26/modules/simpletest/tests/common_test_cron_helper.module17
1 files changed, 17 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/modules/simpletest/tests/common_test_cron_helper.module b/kolab.org/www/drupal-7.26/modules/simpletest/tests/common_test_cron_helper.module
new file mode 100644
index 0000000..94a2b2c
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/modules/simpletest/tests/common_test_cron_helper.module
@@ -0,0 +1,17 @@
+<?php
+/**
+ * @file
+ * Helper module for the testCronExceptions in addition to common_test module.
+ */
+
+/**
+ * Implements hook_cron().
+ *
+ * common_test_cron() throws an exception, but the execution should reach this
+ * function as well.
+ *
+ * @see common_test_cron()
+ */
+function common_test_cron_helper_cron() {
+ variable_set('common_test_cron', 'success');
+}