summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/update_script_test.module
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-11-11 11:53:38 -0800
committerwebchick <webchick@24967.no-reply.drupal.org>2011-11-11 11:53:38 -0800
commit58237ba0b26f52a5634adf81f73492fea3961c3b (patch)
tree2c8ef089df8b211a912df59b7ca5ee532722a4ef /modules/simpletest/tests/update_script_test.module
parent4c994207662887d44f54ccd281e997e92b08fc67 (diff)
downloadbrdo-58237ba0b26f52a5634adf81f73492fea3961c3b.tar.gz
brdo-58237ba0b26f52a5634adf81f73492fea3961c3b.tar.bz2
Issue #1049284 by xjm: Fixed Running update.php to flush caches no longer works unless there are updates pending.
Diffstat (limited to 'modules/simpletest/tests/update_script_test.module')
-rw-r--r--modules/simpletest/tests/update_script_test.module17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/simpletest/tests/update_script_test.module b/modules/simpletest/tests/update_script_test.module
index b3d9bbc7f..beb5a71ec 100644
--- a/modules/simpletest/tests/update_script_test.module
+++ b/modules/simpletest/tests/update_script_test.module
@@ -1 +1,18 @@
<?php
+
+/**
+ * @file
+ * This file provides testing functionality for update.php.
+ */
+
+/**
+ * Implements hook_flush_caches().
+ *
+ * This sets a message to confirm that all caches are cleared whenever
+ * update.php completes.
+ *
+ * @see UpdateScriptFunctionalTest::testRequirements()
+ */
+function update_script_test_flush_caches() {
+ drupal_set_message(t('hook_flush_caches() invoked for update_script_test.module.'));
+}