mirror of
https://github.com/moodle/moodle.git
synced 2025-03-17 14:10:08 +01:00
The event test factory uses a closure to return only every other record. This was previously working based on ID but MSSQL starts from an even number rather than an odd number. This change changes that to use a static variable which keeps a count of the records instead and only returns every other record in this fashion, removing the dependance upon ID.