Skip to content

Commit

Permalink
Fix unit test interaction with auth_saml
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Nov 13, 2023
1 parent 4d492d4 commit be6d161
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/external_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
*/
class external_test extends \advanced_testcase {

public function setUp(): void {
global $SCRIPT;
// With @runTestsInSeparateProcesses, if you have auth_saml installed
// then it gives an error about $SCRIPT being null.
$SCRIPT = '';
}

public function test_get_sharable_question_choices_working(): void {

$this->resetAfterTest();
Expand Down

0 comments on commit be6d161

Please sign in to comment.