Skip to content

Commit

Permalink
Updating tests after merging ContentID enhancement.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Theken committed Nov 30, 2015
1 parent 43894d9 commit 3673ace
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 19 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ sudo: false
language: php

php:
- 5.4
- 5.5
- 5.6
- hhvm
Expand Down
37 changes: 20 additions & 17 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion tests/TransportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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]>',
Expand All @@ -55,6 +59,7 @@ public function testSend() {
'ContentType' => 'text/plain',
'Content' => 'VGhpcyBpcyB0aGUgcGxhaW4gdGV4dCBhdHRhY2htZW50Lg==',
'Name' => 'hello.txt',
'ContentID' => 'cid:'. $attachment->getId()
],
],
],
Expand Down

0 comments on commit 3673ace

Please sign in to comment.