moodleou / moodle-report_customsql

A Moodle report plugin that lets you easily create simple reports that can be expressed as a single SQL query
48 stars 100 forks source link

Moodle 4.2 unit tests: Class "report_customsql\external\get_users" not found #141

Open golenkovm opened 1 year ago

golenkovm commented 1 year ago

Please find details below:

Moodle 4.2.2+ (Build: 20230920)
Php: 8.1.2.1.2.14, pgsql: 14.9 (Debian 14.9-1.pgdg120+1), OS: Linux 6.2.0-1009-aws x86_64
PHPUnit 9.5.28 by Sebastian Bergmann and contributors.

...

12) report_customsql\external\external_get_users_test::test_get_users_site_viewreports
Error: Class "report_customsql\external\get_users" not found

/var/www/site/report/customsql/tests/external/external_get_users_test.php:91
/var/www/site/lib/phpunit/classes/advanced_testcase.php:94

13) report_customsql\external\external_get_users_test::test_get_users_customsql_view
Error: Class "report_customsql\external\get_users" not found

/var/www/site/report/customsql/tests/external/external_get_users_test.php:116
/var/www/site/lib/phpunit/classes/advanced_testcase.php:94

14) report_customsql\external\external_get_users_test::test_get_users_serch_without_admins
Error: Class "report_customsql\external\get_users" not found

/var/www/site/report/customsql/tests/external/external_get_users_test.php:148
/var/www/site/lib/phpunit/classes/advanced_testcase.php:94

15) report_customsql\external\external_get_users_test::test_get_users_serch_with_admin
Error: Class "report_customsql\external\get_users" not found

/var/www/site/report/customsql/tests/external/external_get_users_test.php:166
/var/www/site/lib/phpunit/classes/advanced_testcase.php:94
tholudwig commented 10 months ago

Hi,

an old version of the plugin was mistakenly checked out in our repo. After a rebase, all unit tests run without errors. Perhaps an update of the plugin will fix the error for you, as it did for us.