diff --git a/tests/change_kanban_content_test.php b/tests/change_kanban_content_test.php index 7c578fff..a5f6befb 100644 --- a/tests/change_kanban_content_test.php +++ b/tests/change_kanban_content_test.php @@ -38,7 +38,7 @@ class change_kanban_content_test extends \advanced_testcase { * Prepare testing environment */ public function setUp(): void { - global $DB; + global $DB, $SCRIPT; $this->course = $this->getDataGenerator()->create_course(); $this->kanban = $this->getDataGenerator()->create_module('kanban', ['course' => $this->course]); @@ -56,6 +56,8 @@ public function setUp(): void { $this->getDataGenerator()->enrol_user($this->users[0]->id, $this->course->id, $studentrole->id); $this->getDataGenerator()->enrol_user($this->users[1]->id, $this->course->id, $studentrole->id); $this->getDataGenerator()->enrol_user($this->users[2]->id, $this->course->id, $teacherrole->id); + // This is just for the tests of auth_saml2 not to fail. + $SCRIPT = '/mod/kanban/view.php'; } /**