-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
37 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ public function test_send() | |
{ | ||
$transport = Swift_PostmarkTransport::newInstance('POSTMARK_API_TEST'); | ||
$this->assertInstanceOf('Openbuildings\Postmark\Api', $transport->api()); | ||
|
||
$api = $this->getMock('Openbuildings\Postmark\Api', array(), array('POSTMARK_API_TEST')); | ||
$transport->api($api); | ||
$mailer = Swift_Mailer::newInstance($transport); | ||
|
@@ -37,11 +37,11 @@ public function test_send() | |
$api->expects($this->at(2)) | ||
->method('send') | ||
->with($this->equalTo(array( | ||
'From' => 'John Smith <[email protected]>', | ||
'To' => 'Paul Smith <[email protected]>', | ||
'Cc' => 'Jane Smith <[email protected]>,[email protected]', | ||
'Bcc' => 'Gale Smith <[email protected]>,Mark Smith <[email protected]>', | ||
'ReplyTo' => 'Tom Smith <[email protected]>', | ||
'From' => '"John Smith <[email protected]>"', | ||
'To' => '"Paul Smith <[email protected]>"', | ||
'Cc' => '"Jane \"Panny\" Smith <[email protected]>",[email protected]', | ||
'Bcc' => '"Gale Smith <[email protected]>","Mark Smith <[email protected]>"', | ||
'ReplyTo' => '"Tom Smith <[email protected]>"', | ||
'Subject' => 'Test Big', | ||
'TextBody' => 'Text Part', | ||
'HtmlBody' => 'HTML Part', | ||
|
@@ -94,7 +94,7 @@ public function test_send() | |
$message->setTo('[email protected]', 'Paul Smith'); | ||
$message->setReplyTo('[email protected]', 'Tom Smith'); | ||
$message->setSubject('Test Big'); | ||
$message->setCc(array('[email protected]' => 'Jane Smith', '[email protected]')); | ||
$message->setCc(array('[email protected]' => 'Jane "Panny" Smith', '[email protected]')); | ||
$message->setBcc(array('[email protected]' => 'Gale Smith', '[email protected]' => 'Mark Smith')); | ||
$message->addPart('HTML Part', 'text/html'); | ||
$message->addPart('Text Part', 'text/plain'); | ||
|
@@ -113,7 +113,7 @@ public function test_send() | |
$mailer->send($message); | ||
|
||
$transport->stop(); | ||
|
||
$transport->registerPlugin($this->getMock('Swift_Events_EventListener')); | ||
} | ||
} |