MDL-51266 unittest: replaced low level phpunit_util calls

This commit is contained in:
rajesh Taneja
2015-09-23 15:44:57 +08:00
parent a91caeefc7
commit 551dce86ba
7 changed files with 87 additions and 85 deletions
+3 -3
View File
@@ -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 {