Closed christina-roperto closed 3 months ago
I've had failing unit a failing unit test on Moodle 3.9
There was 1 failure:
1) outagelib_test::test_inject
Failed asserting that 668 is identical to 4781.
/var/www/site/auth/outage/tests/phpunit/local/outagelib_test.php:107
/var/www/site/lib/phpunit/classes/advanced_testcase.php:80
To re-run:
vendor/bin/phpunit "outagelib_test" auth/outage/tests/phpunit/local/outagelib_test.php
I've tracked it down to these two lines: https://github.com/catalyst/moodle-auth_outage/blob/master/tests/phpunit/local/outagelib_test.php#L106-L107
The first time $OUTPUT->standard_top_of_body_html()
it produces this https://paste.wgtn.cat-it.co.nz/QpFcrfzP18Z0lv5E#SpBoTvrLE5k2kbDHP203IQ$0
The second time The first time $OUTPUT->standard_top_of_body_html()
is called the outage bar no longer is in the output see https://paste.wgtn.cat-it.co.nz/D7AYLemvDBt5KT9G#y9c/E506phLmfS8AQFUJeA$0
Note this happens when the plugin https://github.com/catalyst/moodle-local_envbar is installed as well
The issues I had with unit test have been resolved in Pull request #237
There are 12 tests failed when I ran unit test: