var $db;
var $testfiles = array();
var $userbasedir;
+
+ /* The mocking of the $rs and $db objects is problematic. Somehow it's affecting other unit test suites.
+ I'm commenting this off until this is resolved -- nicolasconnault@gmail.com --
function setUp() {
global $db, $CFG;
}
}
- /**
- * This is a moodlelib method but it is used in backuplib, so it is tested here in that context, with typical backup data.
- */
+ // This is a moodlelib method but it is used in backuplib, so it is tested here in that context, with typical backup data.
function test_get_user_directories() {
global $CFG;
$dirlist = get_user_directories();
$this->assertEqual($this->userbasedir, $dirlist[$userid]['basedir']);
}
}
+ */
}
?>
ob_end_clean();
$this->assertEqual('', $result, '%s (No error ouside debug mode).');
- $CFG->debug = E_ALL;
+ $CFG->debug = DEBUG_DEVELOPER;
ob_start();
$record = get_record($this->table, 'textfield', 'tadpole');
$result = ob_get_contents();
ob_end_clean();
$this->assertEqual('', $result, '%s (No error ouside debug mode).');
- $CFG->debug = E_ALL;
+ $CFG->debug = DEBUG_DEVELOPER;
ob_start();
$record = get_record_sql("SELECT * FROM {$CFG->prefix}" . $this->table . " WHERE textfield = 'tadpole'");
$result = ob_get_contents();
ob_end_clean();
$this->assertEqual('', $result, '%s (No error ouside debug mode).');
- $CFG->debug = E_ALL;
+ $CFG->debug = DEBUG_DEVELOPER;
ob_start();
$record = get_record_select($this->table, "textfield = 'tadpole'");
$result = ob_get_contents();