@@ -156,6 +156,19 @@ public function it_checks_email_cc_address()
156156 $ this ->assertEquals ($ this ->mail_tracking , $ this ->callProtectedMethod ('seeEmailCc ' , ['cc@domain.tld ' ]));
157157 }
158158
159+ /**
160+ * @test
161+ * @group unit
162+ */
163+ public function it_checks_email_content_type ()
164+ {
165+ $ message = $ this ->makeMessage ();
166+ $ message ->setContentType ('text/html ' );
167+ $ this ->mail_tracking ->recordMail ($ message );
168+
169+ $ this ->assertEquals ($ this ->mail_tracking , $ this ->callProtectedMethod ('seeEmailContentTypeEquals ' , ['text/html ' ]));
170+ }
171+
159172 /**
160173 * @test
161174 * @group unit
@@ -202,6 +215,25 @@ public function it_checks_email_from_address()
202215 $ this ->mail_tracking ->recordMail ($ message );
203216
204217 $ this ->assertEquals ($ this ->mail_tracking , $ this ->callProtectedMethod ('seeEmailFrom ' , ['from@domain.tld ' ]));
218+ }
219+
220+ /**
221+ * @test
222+ * @group unit
223+ */
224+ public function it_checks_email_priority ()
225+ {
226+ $ message = $ this ->makeMessage ('subject ' , 'body ' , 'to@domain.tld ' , 'from@domain.tld ' );
227+ $ message ->setPriority (1 );
228+ $ this ->mail_tracking ->recordMail ($ message );
229+
230+ $ this ->assertEquals ($ this ->mail_tracking , $ this ->callProtectedMethod ('seeEmailPriorityEquals ' , [1 ]));
231+
232+ // The priority can't be set to anything greater than 5
233+ $ message ->setPriority (6 );
234+ $ this ->mail_tracking ->recordMail ($ message );
235+
236+ $ this ->assertEquals ($ this ->mail_tracking , $ this ->callProtectedMethod ('seeEmailPriorityEquals ' , [5 ]));
205237 }
206238
207239 /**
@@ -223,19 +255,19 @@ public function it_checks_email_reply_to_address()
223255 */
224256 public function it_knows_how_many_emails_have_been_sent ()
225257 {
226- $ this ->assertEquals ($ this ->mail_tracking , $ this ->callProtectedMethod ('seeEmailsSent ' , [0 ]));
258+ $ this ->assertEquals ($ this ->mail_tracking , $ this ->callProtectedMethod ('seeEmailCountEquals ' , [0 ]));
227259
228260 $ message = $ this ->makeMessage ();
229261
230262 $ this ->mail_tracking ->recordMail ($ message );
231263
232- $ this ->assertEquals ($ this ->mail_tracking , $ this ->callProtectedMethod ('seeEmailsSent ' , [1 ]));
264+ $ this ->assertEquals ($ this ->mail_tracking , $ this ->callProtectedMethod ('seeEmailCountEquals ' , [1 ]));
233265
234266 $ message = $ this ->makeMessage ();
235267
236268 $ this ->mail_tracking ->recordMail ($ message );
237269
238- $ this ->assertEquals ($ this ->mail_tracking , $ this ->callProtectedMethod ('seeEmailsSent ' , [2 ]));
270+ $ this ->assertEquals ($ this ->mail_tracking , $ this ->callProtectedMethod ('seeEmailCountEquals ' , [2 ]));
239271 }
240272
241273 /**
@@ -292,7 +324,7 @@ public function it_checks_email_to_address()
292324 * @test
293325 * @group unit
294326 */
295- public function it_knows_if_email_has_not_been_sent_or_not ()
327+ public function it_knows_if_email_has_been_sent_or_not ()
296328 {
297329 $ this ->assertEquals ($ this ->mail_tracking , $ this ->callProtectedMethod ('seeEmailWasNotSent ' ));
298330
0 commit comments