Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit fd81bd0

Browse files
committed
Make test for seeEmailPriorityEquals
1 parent 0789209 commit fd81bd0

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/MailTrackingTest.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,25 @@ public function it_checks_email_from_address()
202202
$this->mail_tracking->recordMail($message);
203203

204204
$this->assertEquals($this->mail_tracking, $this->callProtectedMethod('seeEmailFrom', ['from@domain.tld']));
205+
}
206+
207+
/**
208+
* @test
209+
* @group unit
210+
*/
211+
public function it_checks_email_priority()
212+
{
213+
$message = $this->makeMessage('subject', 'body', 'to@domain.tld', 'from@domain.tld');
214+
$message->setPriority(1);
215+
$this->mail_tracking->recordMail($message);
216+
217+
$this->assertEquals($this->mail_tracking, $this->callProtectedMethod('seeEmailPriorityEquals', [1]));
218+
219+
// The priority can't be set to anything greater than 5
220+
$message->setPriority(6);
221+
$this->mail_tracking->recordMail($message);
222+
223+
$this->assertEquals($this->mail_tracking, $this->callProtectedMethod('seeEmailPriorityEquals', [5]));
205224
}
206225

207226
/**

0 commit comments

Comments
 (0)