mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Removed debug in test
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
4b23ef4021
commit
6fad085a7d
|
@ -235,12 +235,11 @@ class UpdateUserApiTest extends TestCase
|
||||||
$groupA = Group::factory()->create(['name'=>'Group A']);
|
$groupA = Group::factory()->create(['name'=>'Group A']);
|
||||||
$groupB = Group::factory()->create(['name'=>'Group B']);
|
$groupB = Group::factory()->create(['name'=>'Group B']);
|
||||||
|
|
||||||
$response = $this->actingAsForApi($superUser)
|
$this->actingAsForApi($superUser)
|
||||||
->patchJson(route('api.users.update', $user), [
|
->patchJson(route('api.users.update', $user), [
|
||||||
'groups' => [$groupA->id, $groupB->id],
|
'groups' => [$groupA->id, $groupB->id],
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
\Log::error($response);
|
|
||||||
$this->assertTrue($user->refresh()->groups->contains($groupA));
|
$this->assertTrue($user->refresh()->groups->contains($groupA));
|
||||||
$this->assertTrue($user->refresh()->groups->contains($groupB));
|
$this->assertTrue($user->refresh()->groups->contains($groupB));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue