Unverified Commit dccd95bc authored by Carlos Tadeu Panato Junior's avatar Carlos Tadeu Panato Junior Committed by GitHub

fix TestInvitePeopleProvider test (#9084)

parent 05105803
...@@ -15,6 +15,12 @@ func TestInvitePeopleProvider(t *testing.T) { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment