vtos / moodle-mod_adaptivequiz

CAT (Computer-Adaptive Testing) implementation for Moodle LMS (https://moodle.org): officially supported plugin.
https://moodle.org/plugins/mod_adaptivequiz
5 stars 9 forks source link

Fix wrong XML data values to pass PHPUnit tests #17

Open ijuanfe opened 1 year ago

ijuanfe commented 1 year ago

This PR will fix an error and a risky warning that are thrown when running the PHPUnit tests:

  1. Error in mod_adaptivequiz_adaptiveattempt.xml file: it throws an error for those sites that have more than 50 modules in their databases (this also applies for the second file).
  2. Risky warning in mod_adaptivequiz.xml file: the first record in the _coursemodules table was defined with a wrong number (13 instead of 1) in the field instance. I also added a new record for this table based on the number of records that were define in the adaptivequiz table (3, not 2), so they are now in sync.