From 1bb938dff8250bc916be15dd5585d31001bbd5a9 Mon Sep 17 00:00:00 2001 From: Kit Loong Date: Thu, 2 Mar 2023 14:07:51 +0800 Subject: [PATCH] Update test --- tests/NotFoundWhenProductionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/NotFoundWhenProductionTest.php b/tests/NotFoundWhenProductionTest.php index d27972d..4a102f0 100644 --- a/tests/NotFoundWhenProductionTest.php +++ b/tests/NotFoundWhenProductionTest.php @@ -24,7 +24,7 @@ public function testForbiddenInProduction() public function testHandle() { Route::get('middleware', function () { - return 1; + return response()->json([1]); })->middleware(NotFoundWhenProduction::class); $this->get('middleware')