turnitin / moodle-plagiarism_turnitin

Turnitin Plagiarism plugin for Moodle
http://www.turnitin.com
45 stars 65 forks source link

Changes to turnitin_quiz.class.php causing unit tests to fail #659

Open petersistrom opened 1 year ago

petersistrom commented 1 year ago

Recent changes have caused the following unit test to fail

vendor/bin/phpunit --testsuite plagiarism_turnitin_testsuite
Moodle 3.9.20+ (Build: 20230406), 19730ad7a207ba033d5af8c36fa0b0e286f6259a
Php: 7.4.33, mysqli: 5.7.39, OS: Linux 5.19.0-38-generic x86_64
PHPUnit 7.5.20 by Sebastian Bergmann and contributors.

.....................F......                                      28 / 28 (100%)

Time: 13.61 seconds, Memory: 109.00 MB

There was 1 failure:

1) plagiarism_turnitin_quiz_testcase::test_update_mark
Failed asserting that '0.00000' matches expected 0.75.
sumaiyamannan commented 1 year ago

I have applied this fix and the fix provided allowed the installation but on the site the plugin does not work on quiz.