summaryrefslogtreecommitdiff
path: root/modules/system/tests
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/tests')
-rw-r--r--modules/system/tests/system_cron_test.info6
-rw-r--r--modules/system/tests/system_cron_test.module15
2 files changed, 21 insertions, 0 deletions
diff --git a/modules/system/tests/system_cron_test.info b/modules/system/tests/system_cron_test.info
new file mode 100644
index 000000000..3d171ccc4
--- /dev/null
+++ b/modules/system/tests/system_cron_test.info
@@ -0,0 +1,6 @@
+name = System Cron Test
+description = 'Support module for testing the system_cron().'
+package = Testing
+version = VERSION
+core = 7.x
+hidden = TRUE
diff --git a/modules/system/tests/system_cron_test.module b/modules/system/tests/system_cron_test.module
new file mode 100644
index 000000000..9ef80e231
--- /dev/null
+++ b/modules/system/tests/system_cron_test.module
@@ -0,0 +1,15 @@
+<?php
+
+/**
+ * @file
+ * Helper module for CronRunTestCase::testCronCacheExpiration().
+ */
+
+/**
+ * Implements hook_flush_caches().
+ */
+function system_cron_test_flush_caches() {
+ // Set a variable to indicate that this hook was invoked.
+ variable_set('system_cron_test_flush_caches', 1);
+ return array();
+}