tests(integration): fix user controller test, actually

This commit is contained in:
Matthew Penner 2021-08-02 22:26:05 -06:00
parent d9d79d8c95
commit 174cca9e49

View file

@ -72,6 +72,7 @@ class UserControllerTest extends ApplicationApiIntegrationTestCase
'username' => $user->username, 'username' => $user->username,
'email' => $user->email, 'email' => $user->email,
'language' => $user->language, 'language' => $user->language,
'admin_role_id' => $user->admin_role_id,
'root_admin' => (bool) $user->root_admin, 'root_admin' => (bool) $user->root_admin,
'2fa' => (bool) $user->totp_enabled, '2fa' => (bool) $user->totp_enabled,
'avatar_url' => $user->avatarURL(), 'avatar_url' => $user->avatarURL(),
@ -106,6 +107,7 @@ class UserControllerTest extends ApplicationApiIntegrationTestCase
'username' => $user->username, 'username' => $user->username,
'email' => $user->email, 'email' => $user->email,
'language' => $user->language, 'language' => $user->language,
'admin_role_id' => $user->admin_role_id,
'root_admin' => (bool) $user->root_admin, 'root_admin' => (bool) $user->root_admin,
'2fa' => (bool) $user->totp_enabled, '2fa' => (bool) $user->totp_enabled,
'created_at' => $this->formatTimestamp($user->created_at), '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. * to access the resource.
*/ */
public function testResourceIsNotExposedWithoutPermissions() public function testResourceIsNotExposedWithoutPermissions()