We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50cfd70 commit 607ccd4Copy full SHA for 607ccd4
integrations/signup_test.go
@@ -5,6 +5,7 @@
5
package integrations
6
7
import (
8
+ "code.gitea.io/gitea/models"
9
"fmt"
10
"net/http"
11
"strings"
@@ -50,6 +51,9 @@ func TestSignupAsRestricted(t *testing.T) {
50
51
// should be able to view new user's page
52
req = NewRequest(t, "GET", "/restrictedUser")
53
MakeRequest(t, req, http.StatusOK)
54
+
55
+ user2 := models.AssertExistsAndLoadBean(t, &models.User{Name: "restrictedUser"}).(*models.User)
56
+ assert.True(t, user2.IsRestricted)
57
}
58
59
func TestSignupEmail(t *testing.T) {
0 commit comments