mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 13:53:45 +02:00
tests(integration): fix user controller test, actually
This commit is contained in:
@@ -72,6 +72,7 @@ class UserControllerTest extends ApplicationApiIntegrationTestCase
|
||||
'username' => $user->username,
|
||||
'email' => $user->email,
|
||||
'language' => $user->language,
|
||||
'admin_role_id' => $user->admin_role_id,
|
||||
'root_admin' => (bool) $user->root_admin,
|
||||
'2fa' => (bool) $user->totp_enabled,
|
||||
'avatar_url' => $user->avatarURL(),
|
||||
@@ -106,6 +107,7 @@ class UserControllerTest extends ApplicationApiIntegrationTestCase
|
||||
'username' => $user->username,
|
||||
'email' => $user->email,
|
||||
'language' => $user->language,
|
||||
'admin_role_id' => $user->admin_role_id,
|
||||
'root_admin' => (bool) $user->root_admin,
|
||||
'2fa' => (bool) $user->totp_enabled,
|
||||
'created_at' => $this->formatTimestamp($user->created_at),
|
||||
@@ -202,7 +204,7 @@ class UserControllerTest extends ApplicationApiIntegrationTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* Test that a users's existence is not exposed unless an API key has permission
|
||||
* Test that a user's existence is not exposed unless an API key has permission
|
||||
* to access the resource.
|
||||
*/
|
||||
public function testResourceIsNotExposedWithoutPermissions()
|
||||
|
||||
Reference in New Issue
Block a user