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('