From 671f23e28476ce715ee100decfd5de636125a412 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Tue, 16 May 2017 18:50:22 +1000 Subject: [PATCH] Move mail pretend to after app has migrated --- tests/PluginTestCase.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/PluginTestCase.php b/tests/PluginTestCase.php index f3c4f43bd..0a25dd2ec 100644 --- a/tests/PluginTestCase.php +++ b/tests/PluginTestCase.php @@ -34,11 +34,6 @@ abstract class PluginTestCase extends Illuminate\Foundation\Testing\TestCase 'prefix' => '' ]); - /* - * Disable mailer - */ - Mail::pretend(); - /* * Modify the plugin path away from the test context */ @@ -78,6 +73,11 @@ abstract class PluginTestCase extends Illuminate\Foundation\Testing\TestCase if ($pluginCode !== false) { $this->runPluginRefreshCommand($pluginCode, false); } + + /* + * Disable mailer + */ + Mail::pretend(); } /**