fix TestInvitePeopleProvider test (#9084)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0510580364
Коммит
dccd95bc67
@@ -15,6 +15,12 @@ func TestInvitePeopleProvider(t *testing.T) {
|
|||||||
th := Setup().InitBasic()
|
th := Setup().InitBasic()
|
||||||
defer th.TearDown()
|
defer th.TearDown()
|
||||||
|
|
||||||
|
enableEmailInvitations := *th.App.Config().ServiceSettings.EnableEmailInvitations
|
||||||
|
defer func() {
|
||||||
|
th.App.UpdateConfig(func(cfg *model.Config) { cfg.ServiceSettings.EnableEmailInvitations = &enableEmailInvitations })
|
||||||
|
}()
|
||||||
|
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableEmailInvitations = true })
|
||||||
|
|
||||||
cmd := InvitePeopleProvider{}
|
cmd := InvitePeopleProvider{}
|
||||||
|
|
||||||
// Test without required permissions
|
// Test without required permissions
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user