mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-13 15:01:02 -08:00
Clear some extra lines
This commit is contained in:
parent
d8e92d29c0
commit
9a0c66bd30
|
@ -53,11 +53,9 @@ class UsersForSelectListTest extends TestCase
|
||||||
$results = collect($response->json('results'));
|
$results = collect($response->json('results'));
|
||||||
|
|
||||||
$this->assertEquals($jedi->users->count(), $results->count());
|
$this->assertEquals($jedi->users->count(), $results->count());
|
||||||
|
|
||||||
$this->assertTrue(
|
$this->assertTrue(
|
||||||
$results->pluck('text')->contains(fn($text) => str_contains($text, $jedi->users->first()->first_name))
|
$results->pluck('text')->contains(fn($text) => str_contains($text, $jedi->users->first()->first_name))
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->assertFalse(
|
$this->assertFalse(
|
||||||
$results->pluck('text')->contains(fn($text) => str_contains($text, $sith->users->first()->first_name))
|
$results->pluck('text')->contains(fn($text) => str_contains($text, $sith->users->first()->first_name))
|
||||||
);
|
);
|
||||||
|
@ -78,7 +76,6 @@ class UsersForSelectListTest extends TestCase
|
||||||
->create();
|
->create();
|
||||||
|
|
||||||
Passport::actingAs($jedi->users->first());
|
Passport::actingAs($jedi->users->first());
|
||||||
|
|
||||||
$response = $this->getJson(route('api.users.selectlist', ['search' => 'a']))->assertOk();
|
$response = $this->getJson(route('api.users.selectlist', ['search' => 'a']))->assertOk();
|
||||||
|
|
||||||
$results = collect($response->json('results'));
|
$results = collect($response->json('results'));
|
||||||
|
|
Loading…
Reference in a new issue