Skip to content

Commit

Permalink
Fixing route_path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JustSteveKing committed May 26, 2024
1 parent 73eae25 commit 6651a6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Middleware/TreblleMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Illuminate\Http\Response;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Route;
use PHPUnit\Framework\Attributes\Test;
use Treblle\Http\Endpoint;
use Treblle\Middlewares\TreblleMiddleware;
Expand Down Expand Up @@ -105,6 +106,7 @@ public function does_not_log_for_response_under_2mb(): void
$response = new Response($content);

$request = Request::create('/test', 'GET');
Route::get('/test', fn () => $response);
$middleware = $this->newMiddleware();

$middleware->terminate($request, $response);
Expand Down

0 comments on commit 6651a6d

Please sign in to comment.