mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +02:00
Get tests back in working order
This commit is contained in:
@@ -18,7 +18,7 @@ class LocationControllerTest extends ApplicationApiIntegrationTestCase
|
|||||||
{
|
{
|
||||||
$locations = Location::factory()->times(2)->create();
|
$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->assertStatus(Response::HTTP_OK);
|
||||||
$response->assertJsonCount(2, 'data');
|
$response->assertJsonCount(2, 'data');
|
||||||
$response->assertJsonStructure([
|
$response->assertJsonStructure([
|
||||||
@@ -38,7 +38,7 @@ class LocationControllerTest extends ApplicationApiIntegrationTestCase
|
|||||||
'pagination' => [
|
'pagination' => [
|
||||||
'total' => 2,
|
'total' => 2,
|
||||||
'count' => 2,
|
'count' => 2,
|
||||||
'per_page' => 100,
|
'per_page' => 60,
|
||||||
'current_page' => 1,
|
'current_page' => 1,
|
||||||
'total_pages' => 1,
|
'total_pages' => 1,
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ class UserControllerTest extends ApplicationApiIntegrationTestCase
|
|||||||
{
|
{
|
||||||
$user = User::factory()->create();
|
$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->assertStatus(Response::HTTP_OK);
|
||||||
$response->assertJsonCount(2, 'data');
|
$response->assertJsonCount(2, 'data');
|
||||||
$response->assertJsonStructure([
|
$response->assertJsonStructure([
|
||||||
@@ -38,7 +38,7 @@ class UserControllerTest extends ApplicationApiIntegrationTestCase
|
|||||||
'pagination' => [
|
'pagination' => [
|
||||||
'total' => 2,
|
'total' => 2,
|
||||||
'count' => 2,
|
'count' => 2,
|
||||||
'per_page' => 100,
|
'per_page' => 60,
|
||||||
'current_page' => 1,
|
'current_page' => 1,
|
||||||
'total_pages' => 1,
|
'total_pages' => 1,
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user