File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 66use Illuminate \Http \Response ;
77use Illuminate \Support \Facades \Route ;
88use Illuminate \Support \Facades \Vite ;
9+ use Illuminate \Testing \TestResponse ;
910use Laravel \Boost \Middleware \InjectBoost ;
1011use Symfony \Component \HttpFoundation \BinaryFileResponse ;
1112use Symfony \Component \HttpFoundation \JsonResponse ;
@@ -105,13 +106,13 @@ function createMiddlewareResponse($response): SymfonyResponse
105106})->with ([
106107 'with CSP nonce configured ' => [
107108 'test-nonce ' ,
108- fn ($ response ) => $ response
109+ fn (TestResponse $ response ) => $ response
109110 ->assertSee ('nonce="test-nonce" ' , false )
110111 ->assertSee ('id="browser-logger-active" ' , false ),
111112 ],
112113 'without CSP nonce configured ' => [
113114 null ,
114- fn ($ response ) => $ response
115+ fn (TestResponse $ response ) => $ response
115116 ->assertSee ('<script id="browser-logger-active"> ' , false )
116117 ->assertDontSee ('nonce= ' , false )
117118 ->assertDontSee ('test-nonce ' , false ),
You can’t perform that action at this time.
0 commit comments