diff --git a/tests/Feature/Authorization/CanViewLogViewerTest.php b/tests/Feature/Authorization/CanViewLogViewerTest.php index a5b2777d..bbe9dbc7 100644 --- a/tests/Feature/Authorization/CanViewLogViewerTest.php +++ b/tests/Feature/Authorization/CanViewLogViewerTest.php @@ -37,7 +37,15 @@ get(route('log-viewer.index'))->assertOk(); }); -test('can fake environment to production', function () { +test('local environment can use Log Viewer by default', function () { + app()->detectEnvironment(fn () => 'local'); + expect(app()->isProduction())->toBeFalse(); + (new \Opcodes\LogViewer\LogViewerServiceProvider(app()))->boot(); + + get(route('log-viewer.index'))->assertOk(); +}); + +test('Log Viewer is blocked in production environment by default', function () { app()->detectEnvironment(fn () => 'production'); expect(app()->isProduction())->toBeTrue(); (new \Opcodes\LogViewer\LogViewerServiceProvider(app()))->boot();