summaryrefslogtreecommitdiffstats
path: root/cmd/commands/roles_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/commands/roles_test.go')
-rw-r--r--cmd/commands/roles_test.go28
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()
- }
- }
-}