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

Commit 95e1d8b

Browse files
committed
Test to see check for seeEmailDoesNotContain #13
1 parent 6aa7b3b commit 95e1d8b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/MailTrackingTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,18 @@ public function it_checks_email_body_for_content()
168168
$this->assertEquals($this->mail_tracking, $this->callProtectedMethod('seeEmailContains', ['body']));
169169
}
170170

171+
/**
172+
* @test
173+
* @group unit
174+
*/
175+
public function it_checks_email_body_does_not_have_content()
176+
{
177+
$message = $this->makeMessage('subject', '');
178+
$this->mail_tracking->recordMail($message);
179+
180+
$this->assertEquals($this->mail_tracking, $this->callProtectedMethod('seeEmailDoesNotContain', ['body']));
181+
}
182+
171183
/**
172184
* @test
173185
* @group unit

0 commit comments

Comments
 (0)