Removed debug in test

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-05-22 12:37:49 +01:00
parent 4b23ef4021
commit 6fad085a7d

View file

@ -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));
} }