Skip to content
Permalink
Browse files

Oops, I left some debugging info in my prev commit.

  • Loading branch information...
stronk7
stronk7 committed Jun 23, 2009
1 parent 5af6ec1 commit d83bcdfcc7e9939013c6a56171188cc93078ad8f
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/dml/simpletest/testdml.php
@@ -769,14 +769,13 @@ public function test_get_records_sql() {
$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() {

0 comments on commit d83bcdf

Please sign in to comment.
You can’t perform that action at this time.