Skip to content

Commit 8039627

Browse files
committed
small refactor
1 parent b92a81e commit 8039627

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ public function boot(): void
9191
});
9292

9393
// Don't run any health checks during tests
94-
if (config('app.env') !== 'testing') {
94+
if (!app()->runningUnitTests()) {
9595
Health::checks([
96-
DebugModeCheck::new()->unless(app()->environment('local')),
96+
DebugModeCheck::new()->if(app()->isProduction()),
9797
EnvironmentCheck::new(),
9898
CacheCheck::new(),
9999
DatabaseCheck::new(),

0 commit comments

Comments
 (0)