catalyst / moodle-auth_outage

Planned, graduated user and admin friendly moodle outages
https://moodle.org/plugins/auth_outage
17 stars 33 forks source link

WR #343135: Update tests to work with T12 #206

Closed nhoobin closed 3 years ago

nhoobin commented 3 years ago

For some reason, $this->resetAfterTest(true); is not resetting the outage table in T12 (probably T11/13 too)

Adding an explicit tearDown to clean up the auth_outage table.

I did not use the outagelib::delete() function as it called calendar::delete() on outages that did not exist proper.

nhoobin commented 3 years ago

I'll note this resolves issue #152 'outagelib_test should extend base test class auth_outage_base_testcase'

Potentially resolves #166 'Using auth_outage on Totara13-release flavored Moodle causes PHPunit test failures'