From f5ca3914004630f28979b2bf6d06fca21f9fa6c8 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 17 Apr 2021 12:02:08 -0700 Subject: [PATCH] Get tests back in working order --- .../Api/Application/Location/LocationControllerTest.php | 4 ++-- .../Integration/Api/Application/Users/UserControllerTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Integration/Api/Application/Location/LocationControllerTest.php b/tests/Integration/Api/Application/Location/LocationControllerTest.php index 150e01bea..c871e4073 100644 --- a/tests/Integration/Api/Application/Location/LocationControllerTest.php +++ b/tests/Integration/Api/Application/Location/LocationControllerTest.php @@ -18,7 +18,7 @@ class LocationControllerTest extends ApplicationApiIntegrationTestCase { $locations = Location::factory()->times(2)->create(); - $response = $this->getJson('/api/application/locations'); + $response = $this->getJson('/api/application/locations?per_page=60'); $response->assertStatus(Response::HTTP_OK); $response->assertJsonCount(2, 'data'); $response->assertJsonStructure([ @@ -38,7 +38,7 @@ class LocationControllerTest extends ApplicationApiIntegrationTestCase 'pagination' => [ 'total' => 2, 'count' => 2, - 'per_page' => 100, + 'per_page' => 60, 'current_page' => 1, 'total_pages' => 1, ], diff --git a/tests/Integration/Api/Application/Users/UserControllerTest.php b/tests/Integration/Api/Application/Users/UserControllerTest.php index 00b091589..f084d2ed2 100644 --- a/tests/Integration/Api/Application/Users/UserControllerTest.php +++ b/tests/Integration/Api/Application/Users/UserControllerTest.php @@ -18,7 +18,7 @@ class UserControllerTest extends ApplicationApiIntegrationTestCase { $user = User::factory()->create(); - $response = $this->getJson('/api/application/users'); + $response = $this->getJson('/api/application/users?per_page=60'); $response->assertStatus(Response::HTTP_OK); $response->assertJsonCount(2, 'data'); $response->assertJsonStructure([ @@ -38,7 +38,7 @@ class UserControllerTest extends ApplicationApiIntegrationTestCase 'pagination' => [ 'total' => 2, 'count' => 2, - 'per_page' => 100, + 'per_page' => 60, 'current_page' => 1, 'total_pages' => 1, ],