MDL-51266 unittest: replaced low level phpunit_util calls
This commit is contained in:
@@ -104,7 +104,7 @@ class phpunit_util extends testing_util {
|
||||
global $DB, $CFG, $USER, $SITE, $COURSE, $PAGE, $OUTPUT, $SESSION;
|
||||
|
||||
// Stop any message redirection.
|
||||
phpunit_util::stop_message_redirection();
|
||||
self::stop_message_redirection();
|
||||
|
||||
// Stop any message redirection.
|
||||
phpunit_util::stop_phpmailer_redirection();
|
||||
@@ -297,7 +297,7 @@ class phpunit_util extends testing_util {
|
||||
self::$globals['DB'] = $DB;
|
||||
|
||||
// refresh data in all tables, clear caches, etc.
|
||||
phpunit_util::reset_all_data();
|
||||
self::reset_all_data();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -404,7 +404,7 @@ class phpunit_util extends testing_util {
|
||||
}
|
||||
|
||||
if ($DB->get_tables()) {
|
||||
list($errorcode, $message) = phpunit_util::testing_ready_problem();
|
||||
list($errorcode, $message) = self::testing_ready_problem();
|
||||
if ($errorcode) {
|
||||
phpunit_bootstrap_error(PHPUNIT_EXITCODE_REINSTALL, 'Database tables already present, Moodle PHPUnit test environment can not be initialised');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user