Issue #46 - Added tests for every class, except outputs. Small bugs/invalid parameter detection fixed together.

This commit is contained in:
Daniel Thee Roperto
2016-09-26 19:34:27 +10:00
parent 619a5a663f
commit 8791727ba4
28 changed files with 1090 additions and 239 deletions

View File

@@ -25,13 +25,14 @@
use auth_outage\dml\outagedb;
use auth_outage\form\outage\finish;
use auth_outage\local\outagelib;
use auth_outage\output\renderer;
require_once(__DIR__.'/../../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/formslib.php');
$renderer = outagelib::page_setup();
admin_externalpage_setup('auth_outage_manage');
$PAGE->set_url(new moodle_url('/auth/outage/manage.php'));
$mform = new finish();
if ($mform->is_cancelled()) {
@@ -53,7 +54,7 @@ $mform->set_data($dataid);
echo $OUTPUT->header();
echo $renderer->renderfinishconfirmation($outage);
echo renderer::get()->renderfinishconfirmation($outage);
$mform->display();