-
Bug
-
Resolution: Fixed
-
Minor
-
2.3
-
MOODLE_23_STABLE
-
MOODLE_23_STABLE
-
If mtrace outputs using normal output, then we can use the various phpunit output buffering functions to check the output of mtrace.
Also, right now, by using STDOUT during phpunit tests its very difficult to prevent the output.
The test I was starting to write:
public function test_cron() {
|
$this->resetAfterTest(true);
|
|
$fs = get_file_storage();
|
|
// We expect a string for two reasons, 1) because we expect to see this string,
|
// 2) because using this prevents the output.
|
$this->expectOutputRegex('/Cleaning up/');
|
$fs->cron();
|
}
|
- blocks
-
MDL-33326 Improve filestorage test coverage
-
- Closed
-