@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | protected function seeEmailBcc($bcc, Swift_Message $message = null) |
| 98 | 98 | { |
| 99 | 99 | $this->assertArrayHasKey($bcc, (array)$this->getEmail($message) |
| 100 | - ->getBcc(), "The last email sent was not bcc'ed to $bcc."); |
|
| 100 | + ->getBcc(), "The last email sent was not bcc'ed to $bcc."); |
|
| 101 | 101 | |
| 102 | 102 | return $this; |
| 103 | 103 | } |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | protected function seeEmailCc($cc, Swift_Message $message = null) |
| 114 | 114 | { |
| 115 | 115 | $this->assertArrayHasKey($cc, (array)$this->getEmail($message) |
| 116 | - ->getCc(), "The last email sent was not cc'ed to $cc."); |
|
| 116 | + ->getCc(), "The last email sent was not cc'ed to $cc."); |
|
| 117 | 117 | |
| 118 | 118 | return $this; |
| 119 | 119 | } |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | protected function seeEmailContains($excerpt, Swift_Message $message = null) |
| 130 | 130 | { |
| 131 | 131 | $this->assertContains($excerpt, $this->getEmail($message) |
| 132 | - ->getBody(), "The last email sent did not contain the provided body."); |
|
| 132 | + ->getBody(), "The last email sent did not contain the provided body."); |
|
| 133 | 133 | |
| 134 | 134 | return $this; |
| 135 | 135 | } |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | { |
| 147 | 147 | $this->assertNotContains($excerpt, $this->getEmail($message) |
| 148 | 148 | ->getBody(), |
| 149 | - "The last email sent contained the provided text in its body."); |
|
| 149 | + "The last email sent contained the provided text in its body."); |
|
| 150 | 150 | |
| 151 | 151 | return $this; |
| 152 | 152 | } |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | { |
| 180 | 180 | // TODO: Allow from to be an array to check email & name |
| 181 | 181 | $this->assertArrayHasKey($sender, (array)$this->getEmail($message) |
| 182 | - ->getFrom(), "The last email sent was not sent from $sender."); |
|
| 182 | + ->getFrom(), "The last email sent was not sent from $sender."); |
|
| 183 | 183 | |
| 184 | 184 | return $this; |
| 185 | 185 | } |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | { |
| 197 | 197 | $this->assertArrayHasKey($reply_to, (array)$this->getEmail($message) |
| 198 | 198 | ->getReplyTo(), |
| 199 | - "The last email sent was not set to reply to $reply_to."); |
|
| 199 | + "The last email sent was not set to reply to $reply_to."); |
|
| 200 | 200 | |
| 201 | 201 | return $this; |
| 202 | 202 | } |
@@ -242,8 +242,8 @@ discard block |
||
| 242 | 242 | protected function seeEmailSubjectContains($excerpt, Swift_Message $message = null) |
| 243 | 243 | { |
| 244 | 244 | $this->assertContains($excerpt, $this->getEmail($message) |
| 245 | - ->getSubject(), |
|
| 246 | - "The last email sent did not contain the provided subject."); |
|
| 245 | + ->getSubject(), |
|
| 246 | + "The last email sent did not contain the provided subject."); |
|
| 247 | 247 | |
| 248 | 248 | return $this; |
| 249 | 249 | } |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | { |
| 261 | 261 | $this->assertNotContains($excerpt, $this->getEmail($message) |
| 262 | 262 | ->getSubject(), |
| 263 | - "The last email sent contained the provided text in its subject."); |
|
| 263 | + "The last email sent contained the provided text in its subject."); |
|
| 264 | 264 | |
| 265 | 265 | return $this; |
| 266 | 266 | } |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | protected function seeEmailSubjectEquals($subject, Swift_Message $message = null) |
| 277 | 277 | { |
| 278 | 278 | $this->assertEquals($subject, $this->getEmail($message) |
| 279 | - ->getSubject(), |
|
| 279 | + ->getSubject(), |
|
| 280 | 280 | "The last email sent did not contain a subject of $subject."); |
| 281 | 281 | |
| 282 | 282 | return $this; |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | protected function seeEmailTo($recipient, Swift_Message $message = null) |
| 294 | 294 | { |
| 295 | 295 | $this->assertArrayHasKey($recipient, (array)$this->getEmail($message) |
| 296 | - ->getTo(), "The last email sent was not sent to $recipient."); |
|
| 296 | + ->getTo(), "The last email sent was not sent to $recipient."); |
|
| 297 | 297 | |
| 298 | 298 | return $this; |
| 299 | 299 | } |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | * |
| 259 | 259 | * @param integer $count |
| 260 | 260 | * |
| 261 | - * @return TestCase $this |
|
| 261 | + * @return MailTracking $this |
|
| 262 | 262 | * @deprecated in favor of seeEmailCountEquals |
| 263 | 263 | */ |
| 264 | 264 | protected function seeEmailsSent($count) |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | * @param string $subject |
| 289 | 289 | * @param Swift_Message|null $message |
| 290 | 290 | * |
| 291 | - * @return TestCase $this |
|
| 291 | + * @return MailTracking $this |
|
| 292 | 292 | * @deprecated in favor of seeEmailSubjectEquals |
| 293 | 293 | */ |
| 294 | 294 | protected function seeEmailSubject($subject, Swift_Message $message = null) |
@@ -48,7 +48,7 @@ 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 | }; |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | // For PhpUnit 6 and Laravel > 5.2, register the plugin after the app is booted |
| 64 | - $this->afterApplicationCreated(function () use ($register_plugin) { |
|
| 64 | + $this->afterApplicationCreated(function() use ($register_plugin) { |
|
| 65 | 65 | $register_plugin(); |
| 66 | 66 | }); |
| 67 | 67 | } |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | */ |
| 111 | 111 | protected function seeEmailBcc($bcc, Swift_Message $message = null) |
| 112 | 112 | { |
| 113 | - $this->assertArrayHasKey($bcc, (array)$this->getEmail($message) |
|
| 113 | + $this->assertArrayHasKey($bcc, (array) $this->getEmail($message) |
|
| 114 | 114 | ->getBcc(), "The last email sent was not bcc'ed to $bcc."); |
| 115 | 115 | |
| 116 | 116 | return $this; |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | */ |
| 127 | 127 | protected function seeEmailCc($cc, Swift_Message $message = null) |
| 128 | 128 | { |
| 129 | - $this->assertArrayHasKey($cc, (array)$this->getEmail($message) |
|
| 129 | + $this->assertArrayHasKey($cc, (array) $this->getEmail($message) |
|
| 130 | 130 | ->getCc(), "The last email sent was not cc'ed to $cc."); |
| 131 | 131 | |
| 132 | 132 | return $this; |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | protected function seeEmailFrom($sender, Swift_Message $message = null) |
| 211 | 211 | { |
| 212 | 212 | // TODO: Allow from to be an array to check email & name |
| 213 | - $this->assertArrayHasKey($sender, (array)$this->getEmail($message) |
|
| 213 | + $this->assertArrayHasKey($sender, (array) $this->getEmail($message) |
|
| 214 | 214 | ->getFrom(), "The last email sent was not sent from $sender."); |
| 215 | 215 | |
| 216 | 216 | return $this; |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | */ |
| 247 | 247 | protected function seeEmailReplyTo($reply_to, Swift_Message $message = null) |
| 248 | 248 | { |
| 249 | - $this->assertArrayHasKey($reply_to, (array)$this->getEmail($message) |
|
| 249 | + $this->assertArrayHasKey($reply_to, (array) $this->getEmail($message) |
|
| 250 | 250 | ->getReplyTo(), |
| 251 | 251 | "The last email sent was not set to reply to $reply_to."); |
| 252 | 252 | |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | */ |
| 358 | 358 | protected function seeEmailTo($recipient, Swift_Message $message = null) |
| 359 | 359 | { |
| 360 | - $this->assertArrayHasKey($recipient, (array)$this->getEmail($message) |
|
| 360 | + $this->assertArrayHasKey($recipient, (array) $this->getEmail($message) |
|
| 361 | 361 | ->getTo(), "The last email sent was not sent to $recipient."); |
| 362 | 362 | |
| 363 | 363 | return $this; |