mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Fixed accessory assignment
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
64dd8f5d65
commit
2479ccc4c6
|
@ -45,7 +45,7 @@ class DeleteUserTest extends TestCase
|
|||
public function testDisallowUserDeletionIfStillHaveAccessories()
|
||||
{
|
||||
$user = User::factory()->create();
|
||||
Accessory::factory()->count(3)->create(['assigned_to' => $user->id]);
|
||||
Accessory::factory()->count(3)->checkedOutToUser()->create($user);
|
||||
|
||||
$this->actingAs(User::factory()->deleteUsers()->create())->assertFalse($user->isDeletable());
|
||||
|
||||
|
|
Loading…
Reference in a new issue