@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | * @param string $bcc |
| 93 | 93 | * @param Swift_Message|null $message |
| 94 | 94 | * |
| 95 | - * @return PHPUnit_Framework_TestCase $this |
|
| 95 | + * @return MailTracking $this |
|
| 96 | 96 | */ |
| 97 | 97 | protected function seeEmailBcc($bcc, Swift_Message $message = null) |
| 98 | 98 | { |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | * @param string $cc |
| 109 | 109 | * @param Swift_Message|null $message |
| 110 | 110 | * |
| 111 | - * @return PHPUnit_Framework_TestCase $this |
|
| 111 | + * @return MailTracking $this |
|
| 112 | 112 | */ |
| 113 | 113 | protected function seeEmailCc($cc, Swift_Message $message = null) |
| 114 | 114 | { |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * @param string $excerpt |
| 125 | 125 | * @param Swift_Message|null $message |
| 126 | 126 | * |
| 127 | - * @return PHPUnit_Framework_TestCase $this |
|
| 127 | + * @return MailTracking $this |
|
| 128 | 128 | */ |
| 129 | 129 | protected function seeEmailContains($excerpt, Swift_Message $message = null) |
| 130 | 130 | { |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | * @param string $content_type |
| 142 | 142 | * @param Swift_Message|null $message |
| 143 | 143 | * |
| 144 | - * @return PHPUnit_Framework_TestCase $this |
|
| 144 | + * @return MailTracking $this |
|
| 145 | 145 | */ |
| 146 | 146 | protected function seeEmailContentTypeEquals($content_type, Swift_Message $message = null) |
| 147 | 147 | { |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | * @param string $excerpt |
| 159 | 159 | * @param Swift_Message|null $message |
| 160 | 160 | * |
| 161 | - * @return PHPUnit_Framework_TestCase $this |
|
| 161 | + * @return MailTracking $this |
|
| 162 | 162 | */ |
| 163 | 163 | protected function seeEmailDoesNotContain($excerpt, Swift_Message $message = null) |
| 164 | 164 | { |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | * @param string $body |
| 176 | 176 | * @param Swift_Message|null $message |
| 177 | 177 | * |
| 178 | - * @return PHPUnit_Framework_TestCase $this |
|
| 178 | + * @return MailTracking $this |
|
| 179 | 179 | */ |
| 180 | 180 | protected function seeEmailEquals($body, Swift_Message $message = null) |
| 181 | 181 | { |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | * @param string $sender |
| 192 | 192 | * @param Swift_Message|null $message |
| 193 | 193 | * |
| 194 | - * @return PHPUnit_Framework_TestCase $this |
|
| 194 | + * @return MailTracking $this |
|
| 195 | 195 | */ |
| 196 | 196 | protected function seeEmailFrom($sender, Swift_Message $message = null) |
| 197 | 197 | { |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | * @param integer $priority |
| 210 | 210 | * @param Swift_Message|null $message |
| 211 | 211 | * |
| 212 | - * @return PHPUnit_Framework_TestCase $this |
|
| 212 | + * @return MailTracking $this |
|
| 213 | 213 | */ |
| 214 | 214 | protected function seeEmailPriorityEquals($priority, Swift_Message $message = null) |
| 215 | 215 | { |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | * @param string $reply_to |
| 229 | 229 | * @param Swift_Message|null $message |
| 230 | 230 | * |
| 231 | - * @return PHPUnit_Framework_TestCase $this |
|
| 231 | + * @return MailTracking $this |
|
| 232 | 232 | */ |
| 233 | 233 | protected function seeEmailReplyTo($reply_to, Swift_Message $message = null) |
| 234 | 234 | { |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | * |
| 245 | 245 | * @param integer $count |
| 246 | 246 | * |
| 247 | - * @return PHPUnit_Framework_TestCase $this |
|
| 247 | + * @return MailTracking $this |
|
| 248 | 248 | * @deprecated in favor of seeEmailCountEquals |
| 249 | 249 | */ |
| 250 | 250 | protected function seeEmailsSent($count) |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | * |
| 258 | 258 | * @param integer $count |
| 259 | 259 | * |
| 260 | - * @return PHPUnit_Framework_TestCase $this |
|
| 260 | + * @return MailTracking $this |
|
| 261 | 261 | */ |
| 262 | 262 | protected function seeEmailCountEquals($count) |
| 263 | 263 | { |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | * @param string $subject |
| 275 | 275 | * @param Swift_Message|null $message |
| 276 | 276 | * |
| 277 | - * @return PHPUnit_Framework_TestCase $this |
|
| 277 | + * @return MailTracking $this |
|
| 278 | 278 | * @deprecated in favor of seeEmailSubjectEquals |
| 279 | 279 | */ |
| 280 | 280 | protected function seeEmailSubject($subject, Swift_Message $message = null) |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | * @param string $excerpt |
| 289 | 289 | * @param Swift_Message|null $message |
| 290 | 290 | * |
| 291 | - * @return PHPUnit_Framework_TestCase $this |
|
| 291 | + * @return MailTracking $this |
|
| 292 | 292 | */ |
| 293 | 293 | protected function seeEmailSubjectContains($excerpt, Swift_Message $message = null) |
| 294 | 294 | { |
@@ -305,7 +305,7 @@ discard block |
||
| 305 | 305 | * @param string $excerpt |
| 306 | 306 | * @param Swift_Message|null $message |
| 307 | 307 | * |
| 308 | - * @return PHPUnit_Framework_TestCase $this |
|
| 308 | + * @return MailTracking $this |
|
| 309 | 309 | */ |
| 310 | 310 | protected function seeEmailSubjectDoesNotContain($excerpt, Swift_Message $message = null) |
| 311 | 311 | { |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | * @param string $subject |
| 323 | 323 | * @param Swift_Message|null $message |
| 324 | 324 | * |
| 325 | - * @return PHPUnit_Framework_TestCase $this |
|
| 325 | + * @return MailTracking $this |
|
| 326 | 326 | */ |
| 327 | 327 | protected function seeEmailSubjectEquals($subject, Swift_Message $message = null) |
| 328 | 328 | { |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | * @param string $recipient |
| 340 | 340 | * @param Swift_Message|null $message |
| 341 | 341 | * |
| 342 | - * @return PHPUnit_Framework_TestCase $this |
|
| 342 | + * @return MailTracking $this |
|
| 343 | 343 | */ |
| 344 | 344 | protected function seeEmailTo($recipient, Swift_Message $message = null) |
| 345 | 345 | { |
@@ -352,7 +352,7 @@ discard block |
||
| 352 | 352 | /** |
| 353 | 353 | * Assert that no emails were sent. |
| 354 | 354 | * |
| 355 | - * @return PHPUnit_Framework_TestCase $this |
|
| 355 | + * @return MailTracking $this |
|
| 356 | 356 | */ |
| 357 | 357 | protected function seeEmailWasNotSent() |
| 358 | 358 | { |
@@ -366,7 +366,7 @@ discard block |
||
| 366 | 366 | /** |
| 367 | 367 | * Assert that at least one email was sent. |
| 368 | 368 | * |
| 369 | - * @return PHPUnit_Framework_TestCase $this |
|
| 369 | + * @return MailTracking $this |
|
| 370 | 370 | */ |
| 371 | 371 | protected function seeEmailWasSent() |
| 372 | 372 | { |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | protected function seeEmailBcc($bcc, Swift_Message $message = null) |
| 112 | 112 | { |
| 113 | 113 | $this->assertArrayHasKey($bcc, (array)$this->getEmail($message) |
| 114 | - ->getBcc(), "The last email sent was not bcc'ed to $bcc."); |
|
| 114 | + ->getBcc(), "The last email sent was not bcc'ed to $bcc."); |
|
| 115 | 115 | |
| 116 | 116 | return $this; |
| 117 | 117 | } |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | protected function seeEmailCc($cc, Swift_Message $message = null) |
| 128 | 128 | { |
| 129 | 129 | $this->assertArrayHasKey($cc, (array)$this->getEmail($message) |
| 130 | - ->getCc(), "The last email sent was not cc'ed to $cc."); |
|
| 130 | + ->getCc(), "The last email sent was not cc'ed to $cc."); |
|
| 131 | 131 | |
| 132 | 132 | return $this; |
| 133 | 133 | } |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | protected function seeEmailContains($excerpt, Swift_Message $message = null) |
| 144 | 144 | { |
| 145 | 145 | $this->assertContains($excerpt, $this->getEmail($message) |
| 146 | - ->getBody(), "The last email sent did not contain the provided body."); |
|
| 146 | + ->getBody(), "The last email sent did not contain the provided body."); |
|
| 147 | 147 | |
| 148 | 148 | return $this; |
| 149 | 149 | } |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | { |
| 212 | 212 | // TODO: Allow from to be an array to check email & name |
| 213 | 213 | $this->assertArrayHasKey($sender, (array)$this->getEmail($message) |
| 214 | - ->getFrom(), "The last email sent was not sent from $sender."); |
|
| 214 | + ->getFrom(), "The last email sent was not sent from $sender."); |
|
| 215 | 215 | |
| 216 | 216 | return $this; |
| 217 | 217 | } |
@@ -307,7 +307,7 @@ discard block |
||
| 307 | 307 | protected function seeEmailSubjectContains($excerpt, Swift_Message $message = null) |
| 308 | 308 | { |
| 309 | 309 | $this->assertContains($excerpt, $this->getEmail($message) |
| 310 | - ->getSubject(), |
|
| 310 | + ->getSubject(), |
|
| 311 | 311 | "The last email sent did not contain the provided subject."); |
| 312 | 312 | |
| 313 | 313 | return $this; |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | protected function seeEmailSubjectEquals($subject, Swift_Message $message = null) |
| 342 | 342 | { |
| 343 | 343 | $this->assertEquals($subject, $this->getEmail($message) |
| 344 | - ->getSubject(), |
|
| 344 | + ->getSubject(), |
|
| 345 | 345 | "The last email sent did not contain a subject of $subject."); |
| 346 | 346 | |
| 347 | 347 | return $this; |
@@ -358,7 +358,7 @@ discard block |
||
| 358 | 358 | protected function seeEmailTo($recipient, Swift_Message $message = null) |
| 359 | 359 | { |
| 360 | 360 | $this->assertArrayHasKey($recipient, (array)$this->getEmail($message) |
| 361 | - ->getTo(), "The last email sent was not sent to $recipient."); |
|
| 361 | + ->getTo(), "The last email sent was not sent to $recipient."); |
|
| 362 | 362 | |
| 363 | 363 | return $this; |
| 364 | 364 | } |
@@ -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,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; |