mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-65458 message_email: fix failing unit test
This commit is contained in:
parent
b9849c6fac
commit
950246a7ae
@ -129,7 +129,7 @@ class core_message_send_email_task_testcase extends advanced_testcase {
|
||||
$this->assertContains('Group 1', $emailbody);
|
||||
$this->assertContains('Group 2', $emailbody);
|
||||
// 5 unread messages per conversation, this will be listed twice.
|
||||
$this->assertRegExp("/<span\b[^>]*>5<\/span> Unread message\w+/", $emailbody);
|
||||
$this->assertRegExp("/<span\b[^>]*>5<\/span> <span\b[^>]*>Unread message\w+/", $emailbody);
|
||||
|
||||
// Confirm table was emptied after task was run.
|
||||
$this->assertEquals(0, $DB->count_records('message_email_messages'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user