MDL-16483 - renamed MoodleUnitTestCase to FakeDBUnitTestCase; MDL-17841 removed bogus remove lib/simpletest/slowcodetest.php
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user