Open rajandangi opened 3 months ago
The issue seems to be caused by the code segment in settings.php
:
Since $alloptiontemplates
is not available during installation, the default value of 1 forbooking/defaulttemplate
causes the test to fail.
Can we set the default value to 0
instead of 1
to prevent this error during installation?
Is there any particular reason for setting the default value to 1
?
We will look into this. We really need to add Moodle 4.4 to our standard test routine... Thank you for your investigation. I wouldn't see a reason why this would indicate a major problem...
This has recently been added to the Moodle core, which is why it is causing the problem. https://github.com/moodle/moodle/commit/92446838abd56607e0ad5440005907f3a3892193
Description A PHPUnit test failure occurs in
adminlib_test.php
when running tests with Moodle version 4.4.1. The failure is related to asserting that two arrays are identical in thetest_admin_apply_default_settings
method.Versions uses
To Reproduce
vendor/bin/phpunit lib/tests/adminlib_test.php
Expected behavior All tests should pass without any failures.
Actual Behavior
Additional context This issue might be related to default settings not being applied as expected within the test environment.
Please investigate the cause of this failure and provide a fix or workaround to ensure all tests pass successfully.