MDL-39474 introduce $CFG->debugdeveloper and cleanup $CFG init
This commit is contained in:
@@ -299,24 +299,22 @@ class core_statslib_testcase extends advanced_testcase {
|
||||
* Test progress output when debug is on.
|
||||
*/
|
||||
public function test_statslib_progress_debug() {
|
||||
global $CFG;
|
||||
|
||||
$CFG->debug = DEBUG_ALL;
|
||||
set_debugging(DEBUG_ALL);
|
||||
$this->expectOutputString('1:0 ');
|
||||
stats_progress('init');
|
||||
stats_progress('1');
|
||||
$this->resetDebugging();
|
||||
}
|
||||
|
||||
/**
|
||||
* Test progress output when debug is off.
|
||||
*/
|
||||
public function test_statslib_progress_no_debug() {
|
||||
global $CFG;
|
||||
|
||||
$CFG->debug = DEBUG_NONE;
|
||||
set_debugging(DEBUG_NONE);
|
||||
$this->expectOutputString('.');
|
||||
stats_progress('init');
|
||||
stats_progress('1');
|
||||
$this->resetDebugging();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user