mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
MDL-57924 mod_data: Fix get_entry call
It was using the pre-integration version where a group was mandatory
This commit is contained in:
parent
8cc04bcc67
commit
b0f3e6d618
@ -887,7 +887,7 @@ class mod_data_external_testcase extends externallib_advanced_testcase {
|
||||
$result = external_api::clean_returnvalue(mod_data_external::add_entry_returns(), $result);
|
||||
|
||||
$newentryid = $result['newentryid'];
|
||||
$result = mod_data_external::get_entry($newentryid, 0, true);
|
||||
$result = mod_data_external::get_entry($newentryid, true);
|
||||
$result = external_api::clean_returnvalue(mod_data_external::get_entry_returns(), $result);
|
||||
$this->assertEquals($this->student1->id, $result['entry']['userid']);
|
||||
$this->assertCount(9, $result['entry']['contents']);
|
||||
@ -1074,7 +1074,7 @@ class mod_data_external_testcase extends externallib_advanced_testcase {
|
||||
$this->assertCount(0, $result['generalnotifications']);
|
||||
$this->assertCount(0, $result['fieldnotifications']);
|
||||
|
||||
$result = mod_data_external::get_entry($entry11, 0, true);
|
||||
$result = mod_data_external::get_entry($entry11, true);
|
||||
$result = external_api::clean_returnvalue(mod_data_external::get_entry_returns(), $result);
|
||||
$this->assertEquals($this->student1->id, $result['entry']['userid']);
|
||||
$this->assertCount(9, $result['entry']['contents']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user