function common_test_cron in Drupal 8
Same name and namespace in other branches
- 7 modules/simpletest/tests/common_test.module \common_test_cron()
- 9 core/modules/system/tests/modules/common_test/common_test.module \common_test_cron()
- 10 core/modules/system/tests/modules/common_test/common_test.module \common_test_cron()
Implements hook_cron().
System module should handle if a module does not catch an exception and keep cron going.
See also
common_test_cron_helper()
File
- core/
modules/ system/ tests/ modules/ common_test/ common_test.module, line 196 - Helper module for the Common tests.
Code
function common_test_cron() {
throw new Exception('Uncaught exception');
}