From e58f7b73b326d4f8410973e58352dc4b5f00e1c4 Mon Sep 17 00:00:00 2001 From: Peter Burnett Date: Fri, 5 Feb 2021 13:42:05 +1000 Subject: [PATCH] Fixed logic for sequenced calls of outage injection to centralised method --- tests/phpunit/local/outagelib_test.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/local/outagelib_test.php b/tests/phpunit/local/outagelib_test.php index c37715e..01dfab1 100644 --- a/tests/phpunit/local/outagelib_test.php +++ b/tests/phpunit/local/outagelib_test.php @@ -98,13 +98,16 @@ class outagelib_test extends auth_outage_base_testcase { $outage->id = outagedb::save($outage); outagelib::reset_injectcalled(); - $header1 = outagelib::get_inject_code(); + // Get full header to avoid interactions with other single inject plugins. + $header1 = $OUTPUT->standard_top_of_body_html(); self::assertContains('