paginator refactoring and implementation into the routes

This commit is contained in:
Čarodej
2022-05-24 18:19:34 +02:00
parent 31218240ae
commit b9975de700
61 changed files with 1215 additions and 829 deletions

View File

@@ -50,7 +50,7 @@ class SetupWizardTest extends TestCase
'name' => 'database/test.sqlite',
'username' => 'null',
'password' => 'null',
])->assertStatus(204);
])->assertStatus(200);
}
/**
@@ -76,7 +76,7 @@ class SetupWizardTest extends TestCase
'logo_horizontal' => UploadedFile::fake()->image('fake-logo-horizontal.jpg'),
'logo_horizontal_dark' => UploadedFile::fake()->image('fake-logo-horizontal-dark.jpg'),
'favicon' => UploadedFile::fake()->image('fake-favicon.jpg'),
])->assertStatus(204);
])->assertStatus(200);
$this
->assertDatabaseHas('settings', [

View File

@@ -182,7 +182,7 @@ class TeamsTest extends TestCase
$this
->actingAs($user)
->getJson('/api/teams/folders/undefined')
->getJson('/api/teams/folders/all?page=1')
->assertOk()
->assertJsonFragment([
'id' => $folder->id,
@@ -255,7 +255,7 @@ class TeamsTest extends TestCase
$this
->actingAs($member)
->getJson('/api/teams/shared-with-me/undefined')
->getJson('/api/teams/shared-with-me/all?page=1')
->assertOk()
->assertJsonFragment([
'id' => $folders[0]->id,