mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-53182 tool_lp: Fix false negative in events test
This commit is contained in:
parent
25deee1704
commit
d9c1d95bd1
@ -1249,8 +1249,8 @@ class tool_lp_event_testcase extends advanced_testcase {
|
||||
$manager->add("New comment for plan");
|
||||
$events = $sink->get_events();
|
||||
// Add comment will trigger 2 other events message_viewed and message_sent.
|
||||
$this->assertCount(3, $events);
|
||||
$event = $events[2];
|
||||
$this->assertCount(1, $events);
|
||||
$event = array_pop($events);
|
||||
|
||||
// Checking that the event contains the expected values.
|
||||
$this->assertInstanceOf('\tool_lp\event\comment_created', $event);
|
||||
|
Loading…
x
Reference in New Issue
Block a user