Permalink
Browse files

Update InteractsWithMail to account for older versions of phpunit.

  • Loading branch information...
wells committed Sep 11, 2017
1 parent 1e5c1a3 commit 95547fdddcb1da09186d38e88efa5403baa3548d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Testing/InteractsWithMail.php
@@ -56,7 +56,7 @@ public function getLastMessageFor($email)
/** @before */
public function hijackMail()
{
if ((float) $this->app->version() >= 5.5) {
if (method_exists($this, 'afterApplicationCreated')) {
$this->afterApplicationCreated(function () {
$this->getMailer()->hijack();
});

0 comments on commit 95547fd

Please sign in to comment.