MDL-16483 - renamed MoodleUnitTestCase to FakeDBUnitTestCase; MDL-17841 removed bogus remove lib/simpletest/slowcodetest.php

This commit is contained in:
skodak
2009-01-10 13:47:26 +00:00
parent 9870944feb
commit 58fa5d6f75
21 changed files with 26 additions and 92 deletions
+2 -2
View File
@@ -149,7 +149,7 @@ class CheckSpecifiedFieldsExpectation extends SimpleExpectation {
}
}
class MoodleUnitTestCase extends UnitTestCase {
class FakeDBUnitTestCase extends UnitTestCase {
public $tables = array();
public $pkfile;
public $cfg;
@@ -181,7 +181,7 @@ class MoodleUnitTestCase extends UnitTestCase {
$tabledata = '';
foreach ($tables as $table) {
if ($table != 'sessions2') {
if ($table != 'sessions') {
if (!$max_id = $DB->get_field_sql("SELECT MAX(id) FROM {$CFG->unittestprefix}{$table}")) {
$max_id = 0;
}