Skip to content

Commit

Permalink
Merge pull request #33 from mebis-lp/MBS-8549-Unittest-with-auth_saml2
Browse files Browse the repository at this point in the history
MBS-8549: Fix unit test with auth_saml2
  • Loading branch information
tholudwig authored Jan 5, 2024
2 parents 7e15241 + e80a786 commit 581f966
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/change_kanban_content_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand All @@ -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';
}

/**
Expand Down

0 comments on commit 581f966

Please sign in to comment.