Issue #8 - Fixed failing phpunit tests.

This commit is contained in:
Daniel Thee Roperto
2016-09-12 17:52:08 +10:00
parent f05360bfc3
commit cbbb861fd8
2 changed files with 17 additions and 3 deletions

View File

@@ -30,6 +30,14 @@ defined('MOODLE_INTERNAL') || die();
class outagedb_test extends advanced_testcase {
/**
* Ensure DB tests run as admin.
*/
public function setUp() {
parent::setUp();
$this->setAdminUser();
}
/**
* Creates an array of ids in from the given outages array.
* @param $outages