Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests failing in Moodle 4.4 - Class "external_api" not found #52

Open
golenkovm opened this issue Aug 30, 2024 · 0 comments · May be fixed by #53
Open

Unit tests failing in Moodle 4.4 - Class "external_api" not found #52

golenkovm opened this issue Aug 30, 2024 · 0 comments · May be fixed by #53

Comments

@golenkovm
Copy link

Core unit tests are failing when plugin is installed in Moodle 4.4:

1) core_external\external_api_test::test_all_external_info with data set "report_assign_get_user_flags" (stdClass Object (...))
Error: Class "external_api" not found

/var/www/site/report/assign/externallib.php:32
/var/www/site/lib/external/classes/external_api.php:75
/var/www/site/lib/external/tests/external_api_test.php:400
/var/www/site/lib/phpunit/classes/advanced_testcase.php:72

2) core_external\external_api_test::test_all_external_info with data set "report_assign_save_user_extension" (stdClass Object (...))
Error: Class "external_api" not found

/var/www/site/report/assign/externallib.php:32
/var/www/site/lib/external/classes/external_api.php:75
/var/www/site/lib/external/tests/external_api_test.php:400
/var/www/site/lib/phpunit/classes/advanced_testcase.php:72
@golenkovm golenkovm linked a pull request Aug 31, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant