Commit 8e2cd6b9 authored by Eloy Lafuente's avatar Eloy Lafuente Committed by Dan Poltawski
Browse files

MDL-51861 enrol: added missing external cleanup for formal compliance

parent 6b9c205a
......@@ -340,6 +340,9 @@ class core_enrol_externallib_testcase extends externallib_advanced_testcase {
$enrolledusers = core_enrol_external::get_enrolled_users($course->id, $options);
// We need to execute the return values cleaning process to simulate the web service server.
$enrolledusers = external_api::clean_returnvalue(core_enrol_external::get_enrolled_users_returns(), $enrolledusers);
// We are only interested in ids to check visibility.
$viewed = array();
// Verify the user canview the expected users.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment