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
@@ -620,6 +620,17 @@ func (th *TestHelper) CreateUser() *model.User {
|
||||
return th.CreateUserWithClient(th.Client)
|
||||
}
|
||||
|
||||
func (th *TestHelper) CreateGuestUser(tb testing.TB) *model.User {
|
||||
tb.Helper()
|
||||
|
||||
guestUser := th.CreateUserWithClient(th.Client)
|
||||
|
||||
_, appErr := th.App.UpdateUserRoles(th.Context, guestUser.Id, model.SystemGuestRoleId, false)
|
||||
require.Nil(tb, appErr)
|
||||
|
||||
return guestUser
|
||||
}
|
||||
|
||||
func (th *TestHelper) CreateTeam() *model.Team {
|
||||
return th.CreateTeamWithClient(th.Client)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user