MDL-43736 Events: Updated unit test to test context not used in event

This commit is contained in:
Rajesh Taneja
2014-01-29 11:39:50 +08:00
parent fdc729ea57
commit 623a32e50d
36 changed files with 210 additions and 13 deletions
+3 -2
View File
@@ -83,6 +83,7 @@ class core_notes_events_testcase extends advanced_testcase {
$logurl->set_anchor('note-' . $this->eventnote->id);
$arr = array($this->eventnote->courseid, 'notes', 'delete', $logurl, 'delete note');
$this->assertEventLegacyLogData($arr, $event);
$this->assertEventContextNotUsed($event);
}
/**
@@ -113,7 +114,7 @@ class core_notes_events_testcase extends advanced_testcase {
$logurl->set_anchor('note-' . $note->id);
$arr = array($note->courseid, 'notes', 'add', $logurl, 'add note');
$this->assertEventLegacyLogData($arr, $event);
$this->assertEventContextNotUsed($event);
}
/**
@@ -144,7 +145,7 @@ class core_notes_events_testcase extends advanced_testcase {
$logurl->set_anchor('note-' . $note->id);
$arr = array($note->courseid, 'notes', 'update', $logurl, 'update note');
$this->assertEventLegacyLogData($arr, $event);
$this->assertEventContextNotUsed($event);
}
}