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(); } /**