This commit is contained in:
Čarodej
2021-11-03 17:34:46 +01:00
parent 98823504ba
commit cdaad931bb
40 changed files with 69 additions and 112 deletions

View File

@@ -37,13 +37,13 @@ class SearchTest extends TestCase
collect([$english, $russian, $turkish])
->each(
fn ($file) => $this
->actingAs($user)
->getJson('/api/browse/search?query=' . mb_strtolower(mb_substr($file->name, 0, 3)))
->assertStatus(200)
->assertJsonFragment([
'id' => $file->id,
'name' => $file->name,
])
->actingAs($user)
->getJson('/api/browse/search?query=' . mb_strtolower(mb_substr($file->name, 0, 3)))
->assertStatus(200)
->assertJsonFragment([
'id' => $file->id,
'name' => $file->name,
])
);
}