mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-48192 tool_monitor: check output buffer and not ignore it.
Check what is thrown in output buffer and make sure output is expected output.
This commit is contained in:
parent
ca0e301c7b
commit
2b51813b11
1 changed files with 1 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue