Skip to content

Commit

Permalink
adds request inejction
Browse files Browse the repository at this point in the history
  • Loading branch information
tenmajkl committed Oct 5, 2022
1 parent 24093c0 commit 465cf37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Lemon/Testing/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function request(string $path, string $method = 'GET', array $headers = [
$request = new Request($path, $query, $method, $headers, $body, $cookies, $files);

$app = $this->application;
$request->injectApplication($app);
$app->add(Request::class, $request);
$app->alias('request', Request::class);

Expand Down

0 comments on commit 465cf37

Please sign in to comment.