Skip to content

Commit 01d89d6

Browse files
author
Jamie Peters
committed
Updated Service Provider to not register the Mailer if tests are running
1 parent bd9ec9a commit 01d89d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HeloLaravelServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class HeloLaravelServiceProvider extends ServiceProvider
1717
*/
1818
public function boot()
1919
{
20-
if (!$this->app['config']['helo.is_enabled']) {
20+
if ($this->app->runningUnitTests() || !$this->app['config']['helo.is_enabled']) {
2121
return;
2222
}
2323

0 commit comments

Comments
 (0)