-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating tests after merging ContentID enhancement.
- Loading branch information
Andrew Theken
committed
Nov 30, 2015
1 parent
43894d9
commit 3673ace
Showing
3 changed files
with
26 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -2,7 +2,6 @@ sudo: false | |
language: php | ||
|
||
php: | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- hhvm | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 |
---|---|---|
|
@@ -14,7 +14,10 @@ public function testSend() { | |
$message->addBcc('[email protected]'); | ||
$message->addBcc('[email protected]', 'Extra 4'); | ||
$message->addPart('<q>Help me Rhonda</q>', 'text/html'); | ||
$message->attach(Swift_Attachment::newInstance('This is the plain text attachment.', 'hello.txt', 'text/plain')); | ||
|
||
$attachment = Swift_Attachment::newInstance('This is the plain text attachment.', 'hello.txt', 'text/plain'); | ||
|
||
$message->attach($attachment); | ||
$message->setPriority(1); | ||
|
||
$headers = $message->getHeaders(); | ||
|
@@ -36,6 +39,7 @@ public function testSend() { | |
'headers' => [ | ||
'X-Postmark-Server-Token' => 'TESTING_SERVER', | ||
'User-Agent' => "swiftmailer-postmark (PHP Version: $v, OS: $o)", | ||
'Content-Type' => 'application/json' | ||
], | ||
'json' => [ | ||
'From' => '"Johnny #5" <[email protected]>', | ||
|
@@ -55,6 +59,7 @@ public function testSend() { | |
'ContentType' => 'text/plain', | ||
'Content' => 'VGhpcyBpcyB0aGUgcGxhaW4gdGV4dCBhdHRhY2htZW50Lg==', | ||
'Name' => 'hello.txt', | ||
'ContentID' => 'cid:'. $attachment->getId() | ||
], | ||
], | ||
], | ||
|