This repository was archived by the owner on Apr 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Feature/check cc and bcc fields #12
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
cfce7ab
Test for #5 to verify Cc assertion
jimmypuckett 5d35f3c
Assertion for Cc check. Fixes #5
jimmypuckett bdb3891
Test for #4 to verify Bcc assertion
jimmypuckett e16299a
Assertion for Bcc check. Fixes #4
jimmypuckett 1af2da0
Cleaning up todo's for #4 & #5
jimmypuckett db6b81c
Test for #8 to verify Reply To assertion
jimmypuckett 59a3093
Removing some complication in the test
jimmypuckett 7bddb21
Assertion for Reply To check. Fixes #8
jimmypuckett 86c3f1b
Cleaning up todo's for #8
jimmypuckett abc0e78
Adding new methods for #4, #5 & #8 to docs
jimmypuckett 27b1977
Merge branch 'develop' of github.com:spinen/laravel-mail-assertions i…
jimmypuckett eb04b0e
Documenting that Swift_Message can be null
jimmypuckett 669203b
Merge branch 'develop' of github.com:spinen/laravel-mail-assertions i…
jimmypuckett File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,6 +130,32 @@ public function it_records_emails_in_collection() | |
$this->assertCount(1, $this->mail_tracking->exposeMessage()); | ||
} | ||
|
||
/** | ||
* @test | ||
* @group unit | ||
*/ | ||
public function it_checks_email_bcc_address() | ||
{ | ||
$message = $this->makeMessage(); | ||
$message->setBcc('[email protected]'); | ||
$this->mail_tracking->recordMail($message); | ||
|
||
$this->assertEquals($this->mail_tracking, $this->callProtectedMethod('seeEmailBcc', ['[email protected]'])); | ||
} | ||
|
||
/** | ||
* @test | ||
* @group unit | ||
*/ | ||
public function it_checks_email_cc_address() | ||
{ | ||
$message = $this->makeMessage(); | ||
$message->setCc('[email protected]'); | ||
$this->mail_tracking->recordMail($message); | ||
|
||
$this->assertEquals($this->mail_tracking, $this->callProtectedMethod('seeEmailCc', ['[email protected]'])); | ||
} | ||
|
||
/** | ||
* @test | ||
* @group unit | ||
|
@@ -156,7 +182,7 @@ public function it_makes_sure_email_body_is_what_is_expected() | |
|
||
/** | ||
* @test | ||
* @group | ||
* @group unit | ||
*/ | ||
public function it_checks_email_from_address() | ||
{ | ||
|
@@ -168,7 +194,20 @@ public function it_checks_email_from_address() | |
|
||
/** | ||
* @test | ||
* @group | ||
* @group unit | ||
*/ | ||
public function it_checks_email_reply_to_address() | ||
{ | ||
$message = $this->makeMessage(); | ||
$message->setReplyTo('[email protected]'); | ||
$this->mail_tracking->recordMail($message); | ||
|
||
$this->assertEquals($this->mail_tracking, $this->callProtectedMethod('seeEmailReplyTo', ['[email protected]'])); | ||
} | ||
|
||
/** | ||
* @test | ||
* @group unit | ||
*/ | ||
public function it_knows_how_many_emails_have_been_sent() | ||
{ | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not allow someone to pass in an array of emails for the CC and BCC tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a separate issue for that #18 so I want to do that in a different feature.