MDL-37354 clean return value for each externallib PHPUnit tests

This commit is contained in:
Jerome Mouneyrac
2013-01-09 13:55:54 +08:00
parent d63a406b02
commit ada5df1069
9 changed files with 106 additions and 4 deletions
+3
View File
@@ -59,6 +59,9 @@ class core_notes_external_testcase extends externallib_advanced_testcase {
$creatednotes = core_notes_external::create_notes($notes);
// We need to execute the return values cleaning process to simulate the web service server.
$creatednotes = external_api::clean_returnvalue(core_notes_external::create_notes_returns(), $creatednotes);
$thenote = $DB->get_record('post', array('id' => $creatednotes[0]['noteid']));
// Confirm that base note data was inserted correctly.