Closed golenkovm closed 1 year ago
It looks like there is one more failure in 3.9:
root@92f828811309:/var/www/site# vendor/bin/phpunit --testsuite='qtype_formulas_testsuite'
Moodle 3.9.19+ (Build: 20230224), 05f31771a91d5c227e5f85940c6cf541de55d2b9
Php: 7.4.33, pgsql: 12.8 (Debian 12.8-1.pgdg110+1), OS: Linux 5.15.0-60-generic x86_64
PHPUnit 7.5.20 by Sebastian Bergmann and contributors.
.....................................F................. 55 / 55 (100%)
Time: 3.43 seconds, Memory: 115.00 MB
There was 1 failure:
1) qtype_formulas_test::test_get_question_options
Failed asserting that actual size 1 matches expected size 4.
/var/www/site/question/type/formulas/tests/questiontype_test.php:200
/var/www/site/lib/phpunit/classes/advanced_testcase.php:85
phpvfscomposer:///var/www/site/vendor/phpunit/phpunit/phpunit:60
To re-run:
vendor/bin/phpunit "qtype_formulas_test" question/type/formulas/tests/questiontype_test.php
FAILURES!
Tests: 55, Assertions: 731, Failures: 1.
Which appears to be fixed by https://github.com/FormulasQuestion/moodle-qtype_formulas/commit/243d0a1e7be27796a74e08f8000a1595217b05c0 in master. I will add this commit to my PR
Thanks for reporting this. Please note that those branches are legacy stuff. The master branch and current release has full support for Moodle 3.9, as indicated in the README file.
Running Moodle 3.9 unit tests and having the following issues:
This seems to be already fixed in master branch, see https://github.com/FormulasQuestion/moodle-qtype_formulas/commit/d5ec6c240bc7824f3a82db9f1bd361be1ca6df86 . It would be great to have this fixed in
MOODLE_39_STABLE
branch too.3.9 LTS version of Moodle still supports security updates till 11 December 2023. In practice that means that many slow moving organisations (especially universities) are most likely stay on 3.9 for a bit longer than bug fixing period. If you had a chance to have the patch backported that would be much appreciated.
I'm more than happy to make a PR for this.
Cheers, Misha