EduardoKrausME / moodle-local-kopere_dashboard

Dashboard Moodle
https://www.eduardokraus.com/kopere-dashboard
26 stars 20 forks source link

Unit tests failing in 4.1 #86

Closed guillogo closed 1 year ago

guillogo commented 1 year ago

Hi all,

These unit tests are failing in core (4.1):

Moodle 4.1.2 (Build: 20230313), 4b0266242c09429069ecaea240f0b498e34fa6d9
Php: 7.4.3.4.2.18, mysqli: 5.7.40, OS: Linux 5.19.0-38-generic x86_64
PHPUnit 9.5.27 by Sebastian Bergmann and contributors.

....E....E                                                        10 / 10 (100%)

Time: 00:07.793, Memory: 93.00 MB

There were 2 errors:

1) core\admintree_test::test_admin_setting_configexecutable
Undefined variable: settings

/siteroot/local/kopere_dashboard/settings.php:49
/siteroot/lib/classes/plugininfo/local.php:67
/siteroot/admin/settings/plugins.php:794
/siteroot/lib/adminlib.php:8841
/siteroot/lib/adminlib.php:9202
/siteroot/lib/adminlib.php:2977
/siteroot/lib/tests/admintree_test.php:167
/siteroot/lib/phpunit/classes/advanced_testcase.php:80
phpvfscomposer:///siteroot/vendor/phpunit/phpunit/phpunit:97

2) core\admintree_test::test_adminroot_cache_reset
Undefined variable: settings

/siteroot/local/kopere_dashboard/settings.php:49
/siteroot/lib/classes/plugininfo/local.php:67
/siteroot/admin/settings/plugins.php:794
/siteroot/lib/adminlib.php:8841
/siteroot/lib/tests/admintree_test.php:446
/siteroot/lib/phpunit/classes/advanced_testcase.php:80
phpvfscomposer:///siteroot/vendor/phpunit/phpunit/phpunit:97

ERRORS!
Tests: 10, Assertions: 116, Errors: 2.
root@86d2a45b5da7:/siteroot# vendor/bin/phpunit lib/tests/admintree_test.php
Moodle 4.1.2 (Build: 20230313), 4b0266242c09429069ecaea240f0b498e34fa6d9
Php: 7.4.3.4.2.18, mysqli: 5.7.40, OS: Linux 5.19.0-38-generic x86_64
PHPUnit 9.5.27 by Sebastian Bergmann and contributors.

Regards,