MM-63350 Add tests for inviting guest users to teams (#30448)
* MM-63350 Add tests for inviting guest users to teams * Fix style issue * Fix one more issue
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2e44a6a1ed
Коммит
3b9f9b209a
@@ -6344,9 +6344,7 @@ func TestPromoteGuestToUser(t *testing.T) {
|
||||
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.GuestAccountsSettings.Enable = true })
|
||||
th.App.Srv().SetLicense(model.NewTestLicense())
|
||||
|
||||
user := th.BasicUser
|
||||
_, appErr := th.App.UpdateUserRoles(th.Context, user.Id, model.SystemGuestRoleId, false)
|
||||
require.Nil(t, appErr)
|
||||
user := th.CreateGuestUser(t)
|
||||
|
||||
th.TestForSystemAdminAndLocal(t, func(t *testing.T, c *model.Client4) {
|
||||
_, _, err := c.GetUser(context.Background(), user.Id, "")
|
||||
|
||||
Ссылка в новой задаче
Block a user