Permalink
Browse files

Merge pull request #80 from wells/bugfix-laravel-5-5

[Bugfix] Update InteractsWithMail to account for older versions of phpunit
  • Loading branch information...
calebporzio committed Sep 11, 2017
2 parents be93ed5 + 95547fd commit 3c95941b89544d3531c7bc96ec21fb6541c15f18
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 3c95941

Please sign in to comment.