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

Commit 1ef2e50

Browse files
committed
Test to allow subject to be like body. #11
1 parent 4324adb commit 1ef2e50

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

tests/MailTrackingTest.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,31 @@ public function it_makes_sure_email_subject_is_what_is_expected()
251251
$this->callProtectedMethod('seeEmailSubject', ['full message subject']));
252252
}
253253

254+
/**
255+
* @test
256+
* @group unit
257+
*/
258+
public function it_makes_sure_email_subject_contains_expected_string()
259+
{
260+
$message = $this->makeMessage('full message subject');
261+
$this->mail_tracking->recordMail($message);
262+
263+
$this->assertEquals($this->mail_tracking,
264+
$this->callProtectedMethod('seeEmailSubjectContains', ['subject']));
265+
}
266+
267+
/**
268+
* @test
269+
* @group unit
270+
*/
271+
public function it_makes_sure_email_subject_does_not_contain_string()
272+
{
273+
$message = $this->makeMessage('');
274+
$this->mail_tracking->recordMail($message);
275+
276+
$this->assertEquals($this->mail_tracking, $this->callProtectedMethod('seeEmailSubjectDoesNotContain', ['subject']));
277+
}
278+
254279
/**
255280
* @test
256281
* @group unit

0 commit comments

Comments
 (0)