Merge branch 'develop' into lancepioch-patch-1

This commit is contained in:
Dane Everitt 2021-04-17 12:02:19 -07:00 committed by GitHub
commit 13919df603
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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,
],

View file

@ -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,
],