@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | } |
116 | 116 | |
117 | 117 | $this->arrayHasKey((array)$this->getEmail($message) |
118 | - ->getBcc(), $bcc_list, 'The last email sent was not bcc\'ed to any of the following addresses: ' . implode(', ', $bcc_list) . '.'); |
|
118 | + ->getBcc(), $bcc_list, 'The last email sent was not bcc\'ed to any of the following addresses: ' . implode(', ', $bcc_list) . '.'); |
|
119 | 119 | |
120 | 120 | return $this; |
121 | 121 | } |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | protected function seeEmailCc($cc, Swift_Message $message = null) |
132 | 132 | { |
133 | 133 | $this->assertArrayHasKey($cc, (array)$this->getEmail($message) |
134 | - ->getCc(), "The last email sent was not cc'ed to $cc."); |
|
134 | + ->getCc(), "The last email sent was not cc'ed to $cc."); |
|
135 | 135 | |
136 | 136 | return $this; |
137 | 137 | } |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | protected function seeEmailContains($excerpt, Swift_Message $message = null) |
148 | 148 | { |
149 | 149 | $this->assertContains($excerpt, $this->getEmail($message) |
150 | - ->getBody(), "The last email sent did not contain the provided body."); |
|
150 | + ->getBody(), "The last email sent did not contain the provided body."); |
|
151 | 151 | |
152 | 152 | return $this; |
153 | 153 | } |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | { |
183 | 183 | $this->assertNotContains($excerpt, $this->getEmail($message) |
184 | 184 | ->getBody(), |
185 | - "The last email sent contained the provided text in its body."); |
|
185 | + "The last email sent contained the provided text in its body."); |
|
186 | 186 | |
187 | 187 | return $this; |
188 | 188 | } |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | { |
216 | 216 | // TODO: Allow from to be an array to check email & name |
217 | 217 | $this->assertArrayHasKey($sender, (array)$this->getEmail($message) |
218 | - ->getFrom(), "The last email sent was not sent from $sender."); |
|
218 | + ->getFrom(), "The last email sent was not sent from $sender."); |
|
219 | 219 | |
220 | 220 | return $this; |
221 | 221 | } |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | { |
253 | 253 | $this->assertArrayHasKey($reply_to, (array)$this->getEmail($message) |
254 | 254 | ->getReplyTo(), |
255 | - "The last email sent was not set to reply to $reply_to."); |
|
255 | + "The last email sent was not set to reply to $reply_to."); |
|
256 | 256 | |
257 | 257 | return $this; |
258 | 258 | } |
@@ -311,8 +311,8 @@ discard block |
||
311 | 311 | protected function seeEmailSubjectContains($excerpt, Swift_Message $message = null) |
312 | 312 | { |
313 | 313 | $this->assertContains($excerpt, $this->getEmail($message) |
314 | - ->getSubject(), |
|
315 | - "The last email sent did not contain the provided subject."); |
|
314 | + ->getSubject(), |
|
315 | + "The last email sent did not contain the provided subject."); |
|
316 | 316 | |
317 | 317 | return $this; |
318 | 318 | } |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | { |
330 | 330 | $this->assertNotContains($excerpt, $this->getEmail($message) |
331 | 331 | ->getSubject(), |
332 | - "The last email sent contained the provided text in its subject."); |
|
332 | + "The last email sent contained the provided text in its subject."); |
|
333 | 333 | |
334 | 334 | return $this; |
335 | 335 | } |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | protected function seeEmailSubjectEquals($subject, Swift_Message $message = null) |
346 | 346 | { |
347 | 347 | $this->assertEquals($subject, $this->getEmail($message) |
348 | - ->getSubject(), |
|
348 | + ->getSubject(), |
|
349 | 349 | "The last email sent did not contain a subject of $subject."); |
350 | 350 | |
351 | 351 | return $this; |
@@ -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 | } |
@@ -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.1, 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,12 +110,12 @@ discard block |
||
110 | 110 | */ |
111 | 111 | protected function seeEmailBcc($bcc_list, Swift_Message $message = null) |
112 | 112 | { |
113 | - if (! is_array($bcc_list)) { |
|
113 | + if (!is_array($bcc_list)) { |
|
114 | 114 | $bcc_list = [$bcc_list]; |
115 | 115 | } |
116 | 116 | |
117 | - $this->arrayHasKey((array)$this->getEmail($message) |
|
118 | - ->getBcc(), $bcc_list, 'The last email sent was not bcc\'ed to any of the following addresses: ' . implode(', ', $bcc_list) . '.'); |
|
117 | + $this->arrayHasKey((array) $this->getEmail($message) |
|
118 | + ->getBcc(), $bcc_list, 'The last email sent was not bcc\'ed to any of the following addresses: '.implode(', ', $bcc_list).'.'); |
|
119 | 119 | |
120 | 120 | return $this; |
121 | 121 | } |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | */ |
131 | 131 | protected function seeEmailCc($cc, Swift_Message $message = null) |
132 | 132 | { |
133 | - $this->assertArrayHasKey($cc, (array)$this->getEmail($message) |
|
133 | + $this->assertArrayHasKey($cc, (array) $this->getEmail($message) |
|
134 | 134 | ->getCc(), "The last email sent was not cc'ed to $cc."); |
135 | 135 | |
136 | 136 | return $this; |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | protected function seeEmailFrom($sender, Swift_Message $message = null) |
215 | 215 | { |
216 | 216 | // TODO: Allow from to be an array to check email & name |
217 | - $this->assertArrayHasKey($sender, (array)$this->getEmail($message) |
|
217 | + $this->assertArrayHasKey($sender, (array) $this->getEmail($message) |
|
218 | 218 | ->getFrom(), "The last email sent was not sent from $sender."); |
219 | 219 | |
220 | 220 | return $this; |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | */ |
251 | 251 | protected function seeEmailReplyTo($reply_to, Swift_Message $message = null) |
252 | 252 | { |
253 | - $this->assertArrayHasKey($reply_to, (array)$this->getEmail($message) |
|
253 | + $this->assertArrayHasKey($reply_to, (array) $this->getEmail($message) |
|
254 | 254 | ->getReplyTo(), |
255 | 255 | "The last email sent was not set to reply to $reply_to."); |
256 | 256 | |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | */ |
362 | 362 | protected function seeEmailTo($recipient, Swift_Message $message = null) |
363 | 363 | { |
364 | - $this->assertArrayHasKey($recipient, (array)$this->getEmail($message) |
|
364 | + $this->assertArrayHasKey($recipient, (array) $this->getEmail($message) |
|
365 | 365 | ->getTo(), "The last email sent was not sent to $recipient."); |
366 | 366 | |
367 | 367 | return $this; |