mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Fixed tests
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
ba291edc42
commit
b64ed254e0
|
@ -6,7 +6,7 @@ return array(
|
|||
'declined' => 'You have successfully declined this asset.',
|
||||
'bulk_manager_warn' => 'Your users have been successfully updated, however your manager entry was not saved because the manager you selected was also in the user list to be edited, and users may not be their own manager. Please select your users again, excluding the manager.',
|
||||
'user_exists' => 'User already exists!',
|
||||
'user_not_found' => 'User does not exist.',
|
||||
'user_not_found' => 'User does not exist or you do not have permission view them.',
|
||||
'user_login_required' => 'The login field is required',
|
||||
'user_has_no_assets_assigned' => 'No assets currently assigned to user.',
|
||||
'user_password_required' => 'The password is required.',
|
||||
|
|
|
@ -40,7 +40,7 @@ class ViewUserTest extends TestCase
|
|||
|
||||
$this->actingAs(User::factory()->viewUsers()->for($companyA)->create())
|
||||
->get(route('users.print', ['userId' => $user->id]))
|
||||
->assertStatus(403);
|
||||
->assertStatus(302);
|
||||
|
||||
$this->actingAs(User::factory()->viewUsers()->for($companyB)->create())
|
||||
->get(route('users.print', ['userId' => $user->id]))
|
||||
|
|
Loading…
Reference in a new issue