common_test_cron_helper.module

You are here

  1. 7 modules/simpletest/tests/common_test_cron_helper.module
  2. 8 core/modules/system/tests/modules/common_test_cron_helper/common_test_cron_helper.module

Helper module for the testCronExceptions in addition to common_test module.

Functions

Namesort descending Description
common_test_cron_helper_cron Implements hook_cron().

File

modules/simpletest/tests/common_test_cron_helper.module
View source
  1. <?php
  2. /**
  3. * @file
  4. * Helper module for the testCronExceptions in addition to common_test module.
  5. */
  6. /**
  7. * Implements hook_cron().
  8. *
  9. * common_test_cron() throws an exception, but the execution should reach this
  10. * function as well.
  11. *
  12. * @see common_test_cron()
  13. */
  14. function common_test_cron_helper_cron() {
  15. variable_set('common_test_cron', 'success');
  16. }