catalyst / moodle-tool_lockstats

Moodle cron / task API lock statistics admin tool
https://moodle.org/plugins/tool_lockstats
6 stars 13 forks source link

Fix unit test error and warining for latest version of moodle/totara … #105

Closed ScottVerbeek closed 3 years ago

ScottVerbeek commented 3 years ago

…due to phpunit upgrade. Added an if statement to check if new method exists to ensure backward compatibility

ScottVerbeek commented 3 years ago

This pull request is an update to https://github.com/catalyst/moodle-tool_lockstats/pull/104/

ScottVerbeek commented 3 years ago

Check this https://github.com/ScottVerbeek/moodle-tool_lockstats/actions for tests

ScottVerbeek commented 3 years ago

The last commit has I've removed a function that has been returning false since MOODLE_27 https://github.com/moodle/moodle/blob/MOODLE_27_STABLE/lib/classes/lock/file_lock_factory.php#L109-L115