MDL-14065 Commented out buggy backuplib tests, and replaced E_ALL with DEBUG_DEVELOPER in dmllib tests
This commit is contained in:
@@ -47,6 +47,9 @@ class backuplib_test extends UnitTestCase {
|
||||
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 -- [email protected] --
|
||||
|
||||
function setUp() {
|
||||
global $db, $CFG;
|
||||
@@ -115,9 +118,7 @@ class backuplib_test extends UnitTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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();
|
||||
@@ -132,6 +133,7 @@ class backuplib_test extends UnitTestCase {
|
||||
$this->assertEqual($this->userbasedir, $dirlist[$userid]['basedir']);
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -90,7 +90,7 @@ class datalib_test extends prefix_changing_test_case {
|
||||
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();
|
||||
@@ -132,7 +132,7 @@ class datalib_test extends prefix_changing_test_case {
|
||||
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();
|
||||
@@ -166,7 +166,7 @@ class datalib_test extends prefix_changing_test_case {
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user