summaryrefslogtreecommitdiff
path: root/internal/db/bundb/user_test.go
diff options
context:
space:
mode:
authorLibravatar Daenney <daenney@users.noreply.github.com>2023-03-27 16:02:26 +0200
committerLibravatar GitHub <noreply@github.com>2023-03-27 16:02:26 +0200
commit7d098633937a219aa96f1574fa9cc15aec1dd9fe (patch)
tree0e52f09ea8f461e6fa4264aa7eac7337f28c9af2 /internal/db/bundb/user_test.go
parent[chore]: Bump github.com/tdewolff/minify/v2 from 2.12.4 to 2.12.5 (#1649) (diff)
downloadgotosocial-7d098633937a219aa96f1574fa9cc15aec1dd9fe.tar.xz
[feature] Add list command to admin account (#1648)
* [feature] Add list command to admin account Relates to: #388 * Print booleans as yes/no too
Diffstat (limited to 'internal/db/bundb/user_test.go')
-rw-r--r--internal/db/bundb/user_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/db/bundb/user_test.go b/internal/db/bundb/user_test.go
index f2ce434c1..870a1af91 100644
--- a/internal/db/bundb/user_test.go
+++ b/internal/db/bundb/user_test.go
@@ -29,6 +29,12 @@ type UserTestSuite struct {
BunDBStandardTestSuite
}
+func (suite *UserTestSuite) TestGetAllUsers() {
+ users, err := suite.db.GetAllUsers(context.Background())
+ suite.NoError(err)
+ suite.Len(users, len(suite.testUsers))
+}
+
func (suite *UserTestSuite) TestGetUser() {
user, err := suite.db.GetUserByID(context.Background(), suite.testUsers["local_account_1"].ID)
suite.NoError(err)