File tree 2 files changed +0
-23
lines changed
2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change 69
69
define ('TOOL_OBJECTFS_DELETE_EXTERNAL_TRASH ' , 1 );
70
70
define ('TOOL_OBJECTFS_DELETE_EXTERNAL_FULL ' , 2 );
71
71
72
- // Legacy cron function.
73
- function tool_objectfs_cron () {
74
- mtrace ('RUNNING legacy cron objectfs ' );
75
- global $ CFG ;
76
- if ($ CFG ->branch <= 26 ) {
77
- // Unlike the task system, we do not get fine grained control over
78
- // when tasks/manipulators run. Every cron we just run all the manipulators.
79
- (new manipulator_builder ())->execute_all ();
80
-
81
- \tool_objectfs \local \report \objectfs_report::cleanup_reports ();
82
- \tool_objectfs \local \report \objectfs_report::generate_status_report ();
83
- }
84
-
85
- return true ;
86
- }
87
-
88
72
/**
89
73
* Sends a plugin file to the browser.
90
74
* @param $course
Original file line number Diff line number Diff line change @@ -32,13 +32,6 @@ protected function tearDown(): void {
32
32
ob_end_clean ();
33
33
}
34
34
35
- public function test_run_legacy_cron () {
36
- $ config = manager::get_objectfs_config ();
37
- $ config ->enabletasks = true ;
38
- manager::set_objectfs_config ($ config );
39
- $ this ->assertTrue (tool_objectfs_cron ());
40
- }
41
-
42
35
public function test_run_scheduled_tasks () {
43
36
global $ CFG ;
44
37
// If tasks not implemented.
You can’t perform that action at this time.
0 commit comments