summaryrefslogtreecommitdiffstats
path: root/integrations/xss_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/xss_test.go')
-rw-r--r--integrations/xss_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/xss_test.go b/integrations/xss_test.go
index 427c97de26..8128a54aa3 100644
--- a/integrations/xss_test.go
+++ b/integrations/xss_test.go
@@ -9,14 +9,14 @@ import (
"testing"
"code.gitea.io/gitea/models"
- "code.gitea.io/gitea/models/db"
+ "code.gitea.io/gitea/models/unittest"
"github.com/stretchr/testify/assert"
)
func TestXSSUserFullName(t *testing.T) {
defer prepareTestEnv(t)()
- user := db.AssertExistsAndLoadBean(t, &models.User{ID: 2}).(*models.User)
+ user := unittest.AssertExistsAndLoadBean(t, &models.User{ID: 2}).(*models.User)
const fullName = `name & <script class="evil">alert('Oh no!');</script>`
session := loginUser(t, user.Name)