diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-08-30 01:07:28 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-08-30 01:07:28 -0700 |
commit | 3379da9d7008c327115f49c47c2436e1e8ee73cd (patch) | |
tree | 6bd7f1bf97bcdad554848aceee25c4e35fb1cd3e /modules/simpletest/tests/common_test_cron_helper.module | |
parent | d4c02d841c69cb8e83d9a69d9d2d105ed3a1f1d7 (diff) | |
download | brdo-3379da9d7008c327115f49c47c2436e1e8ee73cd.tar.gz brdo-3379da9d7008c327115f49c47c2436e1e8ee73cd.tar.bz2 |
Issue #978944 by Aron Novak, chx, ksenzee: Fixed Handle exceptions thrown in cron.
Diffstat (limited to 'modules/simpletest/tests/common_test_cron_helper.module')
-rw-r--r-- | modules/simpletest/tests/common_test_cron_helper.module | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/simpletest/tests/common_test_cron_helper.module b/modules/simpletest/tests/common_test_cron_helper.module new file mode 100644 index 000000000..94a2b2c43 --- /dev/null +++ b/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'); +} |