This commit is contained in:
Sam Hemelryk 2014-12-01 08:33:53 +13:00
commit 1eded976e5

View File

@ -404,12 +404,11 @@ class tool_monitor_eventobservers_testcase extends advanced_testcase {
* Run adhoc tasks.
*/
protected function run_adhock_tasks() {
ob_start();
while ($task = \core\task\manager::get_next_adhoc_task(time())) {
$task->execute();
\core\task\manager::adhoc_task_complete($task);
}
ob_clean(); // Suppress mtrace debugging info.
$this->expectOutputRegex("/^Sending message to the user with id \d+ for the subscription with id \d+\.\.\..Sent./ms");
}
/**