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

fix test errors in core_external\external_api_test #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public static function find_usage_for_item_returns() {
'visible' => new external_value(PARAM_BOOL, 'Whether the content is visible. False if either the content itself or the course is not visible.'),
'attributes' => new external_multiple_structure(new external_single_structure(array(

'key' => new external_value(PARAM_RAW, 'Attribute key'),'value' => new external_value(PARAM_RAW, 'Attribute value'))), '', false))))));
'key' => new external_value(PARAM_RAW, 'Attribute key'),'value' => new external_value(PARAM_RAW, 'Attribute value'))), '', VALUE_DEFAULT))))));
}
public static function find_all_usage_returns() {
return new external_single_structure(array(
Expand Down Expand Up @@ -162,7 +162,7 @@ public static function find_all_usage_returns() {
'visible' => new external_value(PARAM_BOOL, 'Whether the content is visible. False if either the content itself or the course is not visible.'),
'attributes' => new external_multiple_structure(new external_single_structure(array(

'key' => new external_value(PARAM_RAW, 'Attribute key'),'value' => new external_value(PARAM_RAW, 'Attribute value'))), '', false))))));
'key' => new external_value(PARAM_RAW, 'Attribute key'),'value' => new external_value(PARAM_RAW, 'Attribute value'))), '', VALUE_DEFAULT))))));
}
public static function unfiltered_usage_count_returns() {
return new external_single_structure(array(
Expand Down