mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-10-22 18:18:07 +02:00
Issue #46 - Added tests for every class, except outputs. Small bugs/invalid parameter detection fixed together.
This commit is contained in:
1 parent
619a5a663f
commit
8791727ba4
28 files changed
+1090
-239
No files matched your search
+4
-3
@@ -25,13 +25,14 @@
|
||||
|
||||
use auth_outage\dml\outagedb;
|
||||
use auth_outage\form\outage\delete;
|
||||
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 delete();
|
||||
if ($mform->is_cancelled()) {
|
||||
@@ -53,7 +54,7 @@ $mform->set_data($dataid);
|
||||
|
||||
echo $OUTPUT->header();
|
||||
|
||||
echo $renderer->renderdeleteconfirmation($outage);
|
||||
echo renderer::get()->renderdeleteconfirmation($outage);
|
||||
|
||||
$mform->display();
|
||||
|
||||
|
||||
Reference in new issue
Block a user