mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Oops, I left some debugging info in my prev commit.
This commit is contained in:
parent
5af6ec1b2e
commit
d83bcdfcc7
@ -769,14 +769,13 @@ class dml_test extends UnitTestCase {
|
||||
$CFG->debugdisplay = true;
|
||||
ob_start(); // hide debug warning
|
||||
$records = $DB->get_records_sql("SELECT course AS id, course AS course FROM {".$tablename."}", null);
|
||||
$CFG->debug = $olddebug; // Restore original debug settings
|
||||
ob_end_clean();
|
||||
$CFG->debugdisplay = $olddisplay;
|
||||
$debuginfo = ob_get_contents();
|
||||
$CFG->debug = $olddebug; // Restore original debug settings
|
||||
$CFG->debugdisplay = $olddisplay;
|
||||
|
||||
$this->assertEqual(3, count($records));
|
||||
$this->assertFalse($debuginfo === '');
|
||||
print_object($debuginfo);
|
||||
}
|
||||
|
||||
public function test_get_records_menu() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user