mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Added test
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
aefaabdb1a
commit
17a6335d13
|
@ -144,4 +144,15 @@ class UserSearchTest extends TestCase
|
||||||
'User index contains unexpected user from another company'
|
'User index contains unexpected user from another company'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testUsersIndexWhenInvalidSortFieldIsPassed()
|
||||||
|
{
|
||||||
|
$this->actingAsForApi(User::factory()->viewUsers()->create())
|
||||||
|
->getJson(route('api.users.index', [
|
||||||
|
'sort' => 'assets',
|
||||||
|
]))
|
||||||
|
->assertOk()
|
||||||
|
->assertStatus(200)
|
||||||
|
->json();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue