MDL-16483 - partial unbreaking of eventlsib test

This commit is contained in:
skodak
2009-01-10 13:54:11 +00:00
parent 58fa5d6f75
commit 760ab567d0
+1 -10
View File
@@ -74,8 +74,7 @@ class sample_handler_class {
}
}
class eventslib_test extends FakeDBUnitTestCase {
private $realdb;
class eventslib_test extends UnitTestCase {
/**
* Create temporary entries in the database for these tests.
* These tests have to work no matter the data currently in the database
@@ -84,14 +83,6 @@ class eventslib_test extends FakeDBUnitTestCase {
*/
function setUp() {
// Set global category settings to -1 (not force)
global $CFG, $DB;
if (is_null($DB)) {
$this->realdb = $DB;
$DB = moodle_database::get_driver_instance($CFG->dbtype, $CFG->dblibrary);
$DB->connect($CFG->dbhost, $CFG->dbuser, $CFG->dbpass, $CFG->dbname, $CFG->prefix);
}
events_uninstall('unittest');
sample_function_handler('reset');
sample_handler_class::static_method('reset');