mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
Added another base test
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
3a05d72124
commit
c1be94c4ad
|
@ -45,12 +45,8 @@ class RestoreUserTest extends TestCase
|
|||
public function testSuccessPermissionsForRestoringUserViaApi()
|
||||
{
|
||||
$deleted_user = User::factory()->deletedUser()->create();
|
||||
\Log::warning($deleted_user);
|
||||
|
||||
$admin = User::factory()->deleteUsers()->create();
|
||||
\Log::warning($admin->permissions);
|
||||
|
||||
$this->actingAsForApi($admin)
|
||||
$this->actingAsForApi(User::factory()->admin()->create())
|
||||
->postJson(route('api.users.restore', ['user' => $deleted_user]))
|
||||
->assertOk()
|
||||
->assertStatus(200)
|
||||
|
|
Loading…
Reference in a new issue