diff options
author | Christopher Speller <crspeller@gmail.com> | 2018-05-17 12:40:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-17 12:40:40 -0700 |
commit | 11cbb597471127c1b29e78e6cad0a1a4d93ea24c (patch) | |
tree | 0eceb950872c7234348f0b41d4492073908840d0 /cmd/commands/roles_test.go | |
parent | 1f6c271b3bedd6656ae7155714423b1b39a669c1 (diff) | |
download | chat-11cbb597471127c1b29e78e6cad0a1a4d93ea24c.tar.gz chat-11cbb597471127c1b29e78e6cad0a1a4d93ea24c.tar.bz2 chat-11cbb597471127c1b29e78e6cad0a1a4d93ea24c.zip |
Renaming platform binary to mattermost. (#8801)
Diffstat (limited to 'cmd/commands/roles_test.go')
-rw-r--r-- | cmd/commands/roles_test.go | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/cmd/commands/roles_test.go b/cmd/commands/roles_test.go deleted file mode 100644 index b6b3ae10f..000000000 --- a/cmd/commands/roles_test.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -package commands - -import ( - "testing" - - "github.com/mattermost/mattermost-server/api4" - "github.com/mattermost/mattermost-server/cmd" - "github.com/mattermost/mattermost-server/model" -) - -func TestAssignRole(t *testing.T) { - th := api4.Setup().InitBasic() - defer th.TearDown() - - cmd.CheckCommand(t, "roles", "system_admin", th.BasicUser.Email) - - if result := <-th.App.Srv.Store.User().GetByEmail(th.BasicUser.Email); result.Err != nil { - t.Fatal() - } else { - user := result.Data.(*model.User) - if user.Roles != "system_admin system_user" { - t.Fatal() - } - } -} |