Skip to content

Commit

Permalink
Fixes the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
papac committed Nov 9, 2023
1 parent 6a60e65 commit 99ec54b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Application/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public function test_instance_of_application()
$request = Mockery::mock(Request::class);

$request->allows()->method()->andReturns("GET");
$request->allows()->capture()->andReturns(null);
$request->allows()->get("_method")->andReturns("");

$app = Application::make($request, $response);
Expand All @@ -45,6 +46,7 @@ public function test_one_time_application_boot()
$request = Mockery::mock(Request::class);

$request->allows()->method()->andReturns("GET");
$request->allows()->capture()->andReturns(null);
$request->allows()->get("_method")->andReturns("");

$app = Application::make($request, $response);
Expand All @@ -68,6 +70,7 @@ public function test_send_application_with_404_status()

// Request mock method
$request->allows()->method()->andReturns("GET");
$request->allows()->capture()->andReturns(null);
$request->allows()->path()->andReturns("/");
$request->allows()->get("_method")->andReturns("");

Expand Down Expand Up @@ -96,6 +99,7 @@ public function test_send_application_with_matched_route()

// Request mock method
$request->allows()->method()->andReturns("GET");
$request->allows()->capture()->andReturns(null);
$request->allows()->path()->andReturns("/");
$request->allows()->get("_method")->andReturns("");

Expand Down Expand Up @@ -128,6 +132,7 @@ public function test_send_application_with_no_matched_route()

// Request mock method
$request->allows()->method()->andReturns("GET");
$request->allows()->capture()->andReturns(null);
$request->allows()->path()->andReturns("/name");
$request->allows()->get("_method")->andReturns("");

Expand Down

0 comments on commit 99ec54b

Please sign in to comment.