Skip to content

Commit

Permalink
test_send_teacher_remaider - fix userid
Browse files Browse the repository at this point in the history
  • Loading branch information
semteacher committed Mar 12, 2024
1 parent 64d2edd commit 642656c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/booking_remainder_mails_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,14 @@ public function test_send_teacher_remaider() {
$this->assertEquals($option1->id, $events[1]->objectid);
$this->assertEquals("sent", $events[1]->action);
$this->assertEquals($user2->id, $events[1]->userid);

var_dump($events[2]);
// Checking that the 3rd event - student message - contains the expected values.
$this->assertInstanceOf('\mod_booking\event\message_sent', $events[2]);
$this->assertEquals(context_system::instance(), $events[2]->get_context());
$this->assertNull($events[2]->objectid);
$this->assertEquals("sent", $events[2]->action);
$this->assertEquals($user2->id, $events[2]->userid);
$this->assertEquals($user3->id, $events[2]->relateduserid);
$this->assertEquals($user1->id, $events[2]->relateduserid);

// Checking that the 4th event - teacher reminder - contains the expected values.
$this->assertInstanceOf('\mod_booking\event\reminder_teacher_sent', $events[3]);
Expand Down

0 comments on commit 642656c

Please sign in to comment.