summaryrefslogtreecommitdiffstats
path: root/models/user_test.go
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2018-09-13 10:33:48 +0800
committerGitHub <noreply@github.com>2018-09-13 10:33:48 +0800
commitea20adaa84cbff762fcaa7f2d5fa6b7bf56706ec (patch)
treec2d09da1dcb0a00654963b30dbf5eeb152c83857 /models/user_test.go
parent7dd93b2441fc4eac89ccf6b919bf46823334c8bf (diff)
downloadgitea-ea20adaa84cbff762fcaa7f2d5fa6b7bf56706ec.tar.gz
gitea-ea20adaa84cbff762fcaa7f2d5fa6b7bf56706ec.zip
feat(repo): support search repository by topic name (#4505)
* feat(repo): support search repository by topic name
Diffstat (limited to 'models/user_test.go')
-rw-r--r--models/user_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/user_test.go b/models/user_test.go
index 20de1a64be..4713b6864c 100644
--- a/models/user_test.go
+++ b/models/user_test.go
@@ -77,13 +77,13 @@ func TestSearchUsers(t *testing.T) {
}
testUserSuccess(&SearchUserOptions{OrderBy: "id ASC", Page: 1},
- []int64{1, 2, 4, 5, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 20})
+ []int64{1, 2, 4, 5, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 20, 21})
testUserSuccess(&SearchUserOptions{Page: 1, IsActive: util.OptionalBoolFalse},
[]int64{9})
testUserSuccess(&SearchUserOptions{OrderBy: "id ASC", Page: 1, IsActive: util.OptionalBoolTrue},
- []int64{1, 2, 4, 5, 8, 10, 11, 12, 13, 14, 15, 16, 18, 20})
+ []int64{1, 2, 4, 5, 8, 10, 11, 12, 13, 14, 15, 16, 18, 20, 21})
testUserSuccess(&SearchUserOptions{Keyword: "user1", OrderBy: "id ASC", Page: 1, IsActive: util.OptionalBoolTrue},
[]int64{1, 10, 11, 12, 13, 14, 15, 16, 18})