mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-24 12:17:05 -08:00
Be more explicit in test case
This commit is contained in:
parent
0e57e4836e
commit
c03079944a
|
@ -52,12 +52,12 @@ class UsersForSelectListTest extends TestCase
|
|||
|
||||
$results = collect($response->json('results'));
|
||||
|
||||
$this->assertEquals($jedi->users->count(), $results->count());
|
||||
$this->assertEquals(3, $results->count());
|
||||
$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, 'Luke'))
|
||||
);
|
||||
$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, 'Darth'))
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue