Línea 49... |
Línea 49... |
49 |
}
|
49 |
}
|
Línea 50... |
Línea 50... |
50 |
|
50 |
|
51 |
/**
|
51 |
/**
|
52 |
* Test that the get_popup_notifications function will return the correct notifications.
|
52 |
* Test that the get_popup_notifications function will return the correct notifications.
|
53 |
*/
|
53 |
*/
|
54 |
public function test_message_get_popup_notifications() {
|
54 |
public function test_message_get_popup_notifications(): void {
|
55 |
$sender = $this->getDataGenerator()->create_user(array('firstname' => 'Test1', 'lastname' => 'User1'));
|
55 |
$sender = $this->getDataGenerator()->create_user(array('firstname' => 'Test1', 'lastname' => 'User1'));
|
Línea 56... |
Línea 56... |
56 |
$recipient = $this->getDataGenerator()->create_user(array('firstname' => 'Test2', 'lastname' => 'User2'));
|
56 |
$recipient = $this->getDataGenerator()->create_user(array('firstname' => 'Test2', 'lastname' => 'User2'));
|
57 |
|
57 |
|
Línea 72... |
Línea 72... |
72 |
|
72 |
|
73 |
/**
|
73 |
/**
|
74 |
* Test that the get_popup_notifications function works correctly with limiting and offsetting
|
74 |
* Test that the get_popup_notifications function works correctly with limiting and offsetting
|
75 |
* the result set if requested.
|
75 |
* the result set if requested.
|
76 |
*/
|
76 |
*/
|
77 |
public function test_message_get_popup_notifications_all_limit_and_offset() {
|
77 |
public function test_message_get_popup_notifications_all_limit_and_offset(): void {
|
78 |
$sender = $this->getDataGenerator()->create_user(array('firstname' => 'Test1', 'lastname' => 'User1'));
|
78 |
$sender = $this->getDataGenerator()->create_user(array('firstname' => 'Test1', 'lastname' => 'User1'));
|
Línea 79... |
Línea 79... |
79 |
$recipient = $this->getDataGenerator()->create_user(array('firstname' => 'Test2', 'lastname' => 'User2'));
|
79 |
$recipient = $this->getDataGenerator()->create_user(array('firstname' => 'Test2', 'lastname' => 'User2'));
|
80 |
|
80 |
|
Línea 103... |
Línea 103... |
103 |
}
|
103 |
}
|
Línea 104... |
Línea 104... |
104 |
|
104 |
|
105 |
/**
|
105 |
/**
|
106 |
* Test count_unread_popup_notifications.
|
106 |
* Test count_unread_popup_notifications.
|
107 |
*/
|
107 |
*/
|
108 |
public function test_message_count_unread_popup_notifications() {
|
108 |
public function test_message_count_unread_popup_notifications(): void {
|
109 |
$sender1 = $this->getDataGenerator()->create_user(array('firstname' => 'Test1', 'lastname' => 'User1'));
|
109 |
$sender1 = $this->getDataGenerator()->create_user(array('firstname' => 'Test1', 'lastname' => 'User1'));
|
110 |
$sender2 = $this->getDataGenerator()->create_user(array('firstname' => 'Test2', 'lastname' => 'User2'));
|
110 |
$sender2 = $this->getDataGenerator()->create_user(array('firstname' => 'Test2', 'lastname' => 'User2'));
|
111 |
$recipient1 = $this->getDataGenerator()->create_user(array('firstname' => 'Test3', 'lastname' => 'User3'));
|
111 |
$recipient1 = $this->getDataGenerator()->create_user(array('firstname' => 'Test3', 'lastname' => 'User3'));
|