@@ -48,12 +48,12 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | public function setUpMailTracking() |
| 50 | 50 | { |
| 51 | - $register_plugin = function () { |
|
| 51 | + $register_plugin = function() { |
|
| 52 | 52 | Mail::getSwiftMailer() |
| 53 | 53 | ->registerPlugin(new MailRecorder($this)); |
| 54 | 54 | }; |
| 55 | 55 | |
| 56 | - $this->afterApplicationCreated(function () use ($register_plugin) { |
|
| 56 | + $this->afterApplicationCreated(function() use ($register_plugin) { |
|
| 57 | 57 | $register_plugin(); |
| 58 | 58 | }); |
| 59 | 59 | } |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | */ |
| 103 | 103 | protected function seeEmailBcc($bcc, Swift_Message $message = null) |
| 104 | 104 | { |
| 105 | - $this->assertArrayHasKey($bcc, (array)$this->getEmail($message) |
|
| 105 | + $this->assertArrayHasKey($bcc, (array) $this->getEmail($message) |
|
| 106 | 106 | ->getBcc(), "The last email sent was not bcc'ed to $bcc."); |
| 107 | 107 | |
| 108 | 108 | return $this; |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | */ |
| 119 | 119 | protected function seeEmailCc($cc, Swift_Message $message = null) |
| 120 | 120 | { |
| 121 | - $this->assertArrayHasKey($cc, (array)$this->getEmail($message) |
|
| 121 | + $this->assertArrayHasKey($cc, (array) $this->getEmail($message) |
|
| 122 | 122 | ->getCc(), "The last email sent was not cc'ed to $cc."); |
| 123 | 123 | |
| 124 | 124 | return $this; |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | protected function seeEmailFrom($sender, Swift_Message $message = null) |
| 203 | 203 | { |
| 204 | 204 | // TODO: Allow from to be an array to check email & name |
| 205 | - $this->assertArrayHasKey($sender, (array)$this->getEmail($message) |
|
| 205 | + $this->assertArrayHasKey($sender, (array) $this->getEmail($message) |
|
| 206 | 206 | ->getFrom(), "The last email sent was not sent from $sender."); |
| 207 | 207 | |
| 208 | 208 | return $this; |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | */ |
| 239 | 239 | protected function seeEmailReplyTo($reply_to, Swift_Message $message = null) |
| 240 | 240 | { |
| 241 | - $this->assertArrayHasKey($reply_to, (array)$this->getEmail($message) |
|
| 241 | + $this->assertArrayHasKey($reply_to, (array) $this->getEmail($message) |
|
| 242 | 242 | ->getReplyTo(), |
| 243 | 243 | "The last email sent was not set to reply to $reply_to."); |
| 244 | 244 | |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | */ |
| 350 | 350 | protected function seeEmailTo($recipient, Swift_Message $message = null) |
| 351 | 351 | { |
| 352 | - $this->assertArrayHasKey($recipient, (array)$this->getEmail($message) |
|
| 352 | + $this->assertArrayHasKey($recipient, (array) $this->getEmail($message) |
|
| 353 | 353 | ->getTo(), "The last email sent was not sent to $recipient."); |
| 354 | 354 | |
| 355 | 355 | return $this; |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | protected function seeEmailBcc($bcc, Swift_Message $message = null) |
| 103 | 103 | { |
| 104 | 104 | $this->assertArrayHasKey($bcc, (array)$this->getEmail($message) |
| 105 | - ->getBcc(), "The last email sent was not bcc'ed to $bcc."); |
|
| 105 | + ->getBcc(), "The last email sent was not bcc'ed to $bcc."); |
|
| 106 | 106 | |
| 107 | 107 | return $this; |
| 108 | 108 | } |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | protected function seeEmailCc($cc, Swift_Message $message = null) |
| 119 | 119 | { |
| 120 | 120 | $this->assertArrayHasKey($cc, (array)$this->getEmail($message) |
| 121 | - ->getCc(), "The last email sent was not cc'ed to $cc."); |
|
| 121 | + ->getCc(), "The last email sent was not cc'ed to $cc."); |
|
| 122 | 122 | |
| 123 | 123 | return $this; |
| 124 | 124 | } |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | protected function seeEmailContains($excerpt, Swift_Message $message = null) |
| 135 | 135 | { |
| 136 | 136 | $this->assertStringContainsString($excerpt, $this->getEmail($message) |
| 137 | - ->getBody(), "The last email sent did not contain the provided body."); |
|
| 137 | + ->getBody(), "The last email sent did not contain the provided body."); |
|
| 138 | 138 | |
| 139 | 139 | return $this; |
| 140 | 140 | } |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | { |
| 170 | 170 | $this->assertStringNotContainsString($excerpt, $this->getEmail($message) |
| 171 | 171 | ->getBody(), |
| 172 | - "The last email sent contained the provided text in its body."); |
|
| 172 | + "The last email sent contained the provided text in its body."); |
|
| 173 | 173 | |
| 174 | 174 | return $this; |
| 175 | 175 | } |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | { |
| 203 | 203 | // TODO: Allow from to be an array to check email & name |
| 204 | 204 | $this->assertArrayHasKey($sender, (array)$this->getEmail($message) |
| 205 | - ->getFrom(), "The last email sent was not sent from $sender."); |
|
| 205 | + ->getFrom(), "The last email sent was not sent from $sender."); |
|
| 206 | 206 | |
| 207 | 207 | return $this; |
| 208 | 208 | } |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | { |
| 240 | 240 | $this->assertArrayHasKey($reply_to, (array)$this->getEmail($message) |
| 241 | 241 | ->getReplyTo(), |
| 242 | - "The last email sent was not set to reply to $reply_to."); |
|
| 242 | + "The last email sent was not set to reply to $reply_to."); |
|
| 243 | 243 | |
| 244 | 244 | return $this; |
| 245 | 245 | } |
@@ -298,8 +298,8 @@ discard block |
||
| 298 | 298 | protected function seeEmailSubjectContains($excerpt, Swift_Message $message = null) |
| 299 | 299 | { |
| 300 | 300 | $this->assertStringContainsString($excerpt, $this->getEmail($message) |
| 301 | - ->getSubject(), |
|
| 302 | - "The last email sent did not contain the provided subject."); |
|
| 301 | + ->getSubject(), |
|
| 302 | + "The last email sent did not contain the provided subject."); |
|
| 303 | 303 | |
| 304 | 304 | return $this; |
| 305 | 305 | } |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | { |
| 317 | 317 | $this->assertStringNotContainsString($excerpt, $this->getEmail($message) |
| 318 | 318 | ->getSubject(), |
| 319 | - "The last email sent contained the provided text in its subject."); |
|
| 319 | + "The last email sent contained the provided text in its subject."); |
|
| 320 | 320 | |
| 321 | 321 | return $this; |
| 322 | 322 | } |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | protected function seeEmailSubjectEquals($subject, Swift_Message $message = null) |
| 333 | 333 | { |
| 334 | 334 | $this->assertEquals($subject, $this->getEmail($message) |
| 335 | - ->getSubject(), |
|
| 335 | + ->getSubject(), |
|
| 336 | 336 | "The last email sent did not contain a subject of $subject."); |
| 337 | 337 | |
| 338 | 338 | return $this; |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | protected function seeEmailTo($recipient, Swift_Message $message = null) |
| 350 | 350 | { |
| 351 | 351 | $this->assertArrayHasKey($recipient, (array)$this->getEmail($message) |
| 352 | - ->getTo(), "The last email sent was not sent to $recipient."); |
|
| 352 | + ->getTo(), "The last email sent was not sent to $recipient."); |
|
| 353 | 353 | |
| 354 | 354 | return $this; |
| 355 | 355 | } |