Lines Matching refs:getnotes
163 $getnotes = core_notes_external::get_notes($gnotes);
164 … $getnotes = external_api::clean_returnvalue(core_notes_external::get_notes_returns(), $getnotes);
168 $this->assertEquals($cnote['userid'], $getnotes["notes"][0]["userid"]);
169 $this->assertEquals($cnote['text'], $getnotes["notes"][0]["text"]);
170 $this->assertEquals($cnote['userid'], $getnotes["notes"][1]["userid"]);
171 $this->assertEquals($cnote['text'], $getnotes["notes"][1]["text"]);
172 $this->assertEquals($cnote['userid'], $getnotes["notes"][2]["userid"]);
173 $this->assertEquals($cnote['text'], $getnotes["notes"][2]["text"]);
174 $this->assertEquals("note", $getnotes["warnings"][0]["item"]);
175 $this->assertEquals(33, $getnotes["warnings"][0]["itemid"]);
176 $this->assertEquals("badid", $getnotes["warnings"][0]["warningcode"]);
177 $this->assertEquals("Note does not exist", $getnotes["warnings"][0]["message"]);