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

Mdl4.5 core_external\external_api_test units failing because of mod_equella functions in externallib.php #99

Open
aneno-m-e opened this issue Sep 18, 2024 · 2 comments

Comments

@aneno-m-e
Copy link

Running core_external\external_api_test::test_all_external_info unit test in isolation results in the following output:

There were 2 errors:

1) core_external\external_api_test::test_all_external_info with data set "equella_find_all_usage" (stdClass Object (...))
Unexpected debugging() call detected.
Debugging: Invalid $required parameter value: '' .
                It must be either VALUE_DEFAULT, VALUE_REQUIRED, or VALUE_OPTIONAL

2) core_external\external_api_test::test_all_external_info with data set "equella_find_usage_for_item" (stdClass Object (...))
Unexpected debugging() call detected.
Debugging: Invalid $required parameter value: '' .
                It must be either VALUE_DEFAULT, VALUE_REQUIRED, or VALUE_OPTIONAL

The issue seems to come from L137 and L165 of the externallib.php file.

Running:

  • mod_equella: version 1.3.1
  • Moodle Version: 4.5
@usqfowlerj
Copy link

The solution I've been using can be found in this branch.

@edalex-ian
Copy link
Member

Thanks for raising this issue @aneno-m-e . @usqfowlerj would you have any interesting in converting that branch into a PR?

usqfowlerj added a commit to usqfowlerj/moodle-mod_openEQUELLA that referenced this issue Oct 1, 2024
test_all_external_info complains about `Invalid $required parameter
value: ''` and VALUE_DEFAULT seems the appropriate substitute.

refs openequella#99
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

No branches or pull requests

3 participants