@@ -51,8 +51,8 @@ discard block |
||
51 | 51 | { |
52 | 52 | $register_plugin = function () { |
53 | 53 | $this->resolveMailer() |
54 | - ->getSwiftMailer() |
|
55 | - ->registerPlugin(new MailRecorder($this)); |
|
54 | + ->getSwiftMailer() |
|
55 | + ->registerPlugin(new MailRecorder($this)); |
|
56 | 56 | }; |
57 | 57 | |
58 | 58 | $this->afterApplicationCreated(function () use ($register_plugin) { |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | protected function seeEmailBcc($bcc, Swift_Message $message = null) |
120 | 120 | { |
121 | 121 | $this->assertArrayHasKey($bcc, (array)$this->getEmail($message) |
122 | - ->getBcc(), "The last email sent was not bcc'ed to $bcc."); |
|
122 | + ->getBcc(), "The last email sent was not bcc'ed to $bcc."); |
|
123 | 123 | |
124 | 124 | return $this; |
125 | 125 | } |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | protected function seeEmailCc($cc, Swift_Message $message = null) |
136 | 136 | { |
137 | 137 | $this->assertArrayHasKey($cc, (array)$this->getEmail($message) |
138 | - ->getCc(), "The last email sent was not cc'ed to $cc."); |
|
138 | + ->getCc(), "The last email sent was not cc'ed to $cc."); |
|
139 | 139 | |
140 | 140 | return $this; |
141 | 141 | } |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | protected function seeEmailContains($excerpt, Swift_Message $message = null) |
152 | 152 | { |
153 | 153 | $this->assertStringContainsString($excerpt, $this->getEmail($message) |
154 | - ->getBody(), "The last email sent did not contain the provided body."); |
|
154 | + ->getBody(), "The last email sent did not contain the provided body."); |
|
155 | 155 | |
156 | 156 | return $this; |
157 | 157 | } |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | { |
219 | 219 | // TODO: Allow from to be an array to check email & name |
220 | 220 | $this->assertArrayHasKey($sender, (array)$this->getEmail($message) |
221 | - ->getFrom(), "The last email sent was not sent from $sender."); |
|
221 | + ->getFrom(), "The last email sent was not sent from $sender."); |
|
222 | 222 | |
223 | 223 | return $this; |
224 | 224 | } |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | { |
256 | 256 | $this->assertArrayHasKey($reply_to, (array)$this->getEmail($message) |
257 | 257 | ->getReplyTo(), |
258 | - "The last email sent was not set to reply to $reply_to."); |
|
258 | + "The last email sent was not set to reply to $reply_to."); |
|
259 | 259 | |
260 | 260 | return $this; |
261 | 261 | } |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | protected function seeEmailSubjectContains($excerpt, Swift_Message $message = null) |
315 | 315 | { |
316 | 316 | $this->assertStringContainsString($excerpt, $this->getEmail($message) |
317 | - ->getSubject(), "The last email sent did not contain the provided subject."); |
|
317 | + ->getSubject(), "The last email sent did not contain the provided subject."); |
|
318 | 318 | |
319 | 319 | return $this; |
320 | 320 | } |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | protected function seeEmailSubjectEquals($subject, Swift_Message $message = null) |
347 | 347 | { |
348 | 348 | $this->assertEquals($subject, $this->getEmail($message) |
349 | - ->getSubject(), "The last email sent did not contain a subject of $subject."); |
|
349 | + ->getSubject(), "The last email sent did not contain a subject of $subject."); |
|
350 | 350 | |
351 | 351 | return $this; |
352 | 352 | } |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | protected function seeEmailTo($recipient, Swift_Message $message = null) |
363 | 363 | { |
364 | 364 | $this->assertArrayHasKey($recipient, (array)$this->getEmail($message) |
365 | - ->getTo(), "The last email sent was not sent to $recipient."); |
|
365 | + ->getTo(), "The last email sent was not sent to $recipient."); |
|
366 | 366 | |
367 | 367 | return $this; |
368 | 368 | } |