diff options
author | 6543 <6543@obermui.de> | 2021-01-10 13:14:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-10 14:14:02 +0200 |
commit | 6b3b6f1833d07383d24d68ec220a18315ac36809 (patch) | |
tree | aeceb687845f71a493b64c223297c0567d7f6bf5 /integrations/delete_user_test.go | |
parent | d989247bb08d2b8eb144e7a0edeaedfc26d08175 (diff) | |
download | gitea-6b3b6f1833d07383d24d68ec220a18315ac36809.tar.gz gitea-6b3b6f1833d07383d24d68ec220a18315ac36809.zip |
Add option to change username to the admin panel (#14229)
Co-authored-by: Bwko <bouwko@gmail.com>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'integrations/delete_user_test.go')
-rw-r--r-- | integrations/delete_user_test.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/integrations/delete_user_test.go b/integrations/delete_user_test.go index 32032b3ddf..86be6f22ad 100644 --- a/integrations/delete_user_test.go +++ b/integrations/delete_user_test.go @@ -24,21 +24,6 @@ func assertUserDeleted(t *testing.T, userID int64) { models.AssertNotExistsBean(t, &models.Star{UID: userID}) } -func TestAdminDeleteUser(t *testing.T) { - defer prepareTestEnv(t)() - - session := loginUser(t, "user1") - - csrf := GetCSRF(t, session, "/admin/users/8") - req := NewRequestWithValues(t, "POST", "/admin/users/8/delete", map[string]string{ - "_csrf": csrf, - }) - session.MakeRequest(t, req, http.StatusOK) - - assertUserDeleted(t, 8) - models.CheckConsistencyFor(t, &models.User{}) -} - func TestUserDeleteAccount(t *testing.T) { defer prepareTestEnv(t)() |