summaryrefslogtreecommitdiff
path: root/internal/api/client/admin/admin_test.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-11-14 23:47:27 +0100
committerLibravatar GitHub <noreply@github.com>2022-11-14 22:47:27 +0000
commit4cd00d546c495b085487d11f2fe2c4928600dc10 (patch)
tree6605424baafddf020a4a6e0a0ddcde9293c1cb56 /internal/api/client/admin/admin_test.go
parent[chore] Remove unused `admin account suspend` action (#1047) (diff)
downloadgotosocial-4cd00d546c495b085487d11f2fe2c4928600dc10.tar.xz
[feature] Allow newly uploaded emojis to be placed in categories (#939)
* [feature] Add emoji categories GET Serialize emojis in appropriate categories; make it possible to get categories via the admin API * [feature] Create (or use existing) category for new emoji uploads * fix lint issue * update misleading line in swagger docs
Diffstat (limited to 'internal/api/client/admin/admin_test.go')
-rw-r--r--internal/api/client/admin/admin_test.go18
1 files changed, 10 insertions, 8 deletions
diff --git a/internal/api/client/admin/admin_test.go b/internal/api/client/admin/admin_test.go
index ce026a67b..9303ee3f2 100644
--- a/internal/api/client/admin/admin_test.go
+++ b/internal/api/client/admin/admin_test.go
@@ -53,14 +53,15 @@ type AdminStandardTestSuite struct {
sentEmails map[string]string
// standard suite models
- testTokens map[string]*gtsmodel.Token
- testClients map[string]*gtsmodel.Client
- testApplications map[string]*gtsmodel.Application
- testUsers map[string]*gtsmodel.User
- testAccounts map[string]*gtsmodel.Account
- testAttachments map[string]*gtsmodel.MediaAttachment
- testStatuses map[string]*gtsmodel.Status
- testEmojis map[string]*gtsmodel.Emoji
+ testTokens map[string]*gtsmodel.Token
+ testClients map[string]*gtsmodel.Client
+ testApplications map[string]*gtsmodel.Application
+ testUsers map[string]*gtsmodel.User
+ testAccounts map[string]*gtsmodel.Account
+ testAttachments map[string]*gtsmodel.MediaAttachment
+ testStatuses map[string]*gtsmodel.Status
+ testEmojis map[string]*gtsmodel.Emoji
+ testEmojiCategories map[string]*gtsmodel.EmojiCategory
// module being tested
adminModule *admin.Module
@@ -75,6 +76,7 @@ func (suite *AdminStandardTestSuite) SetupSuite() {
suite.testAttachments = testrig.NewTestAttachments()
suite.testStatuses = testrig.NewTestStatuses()
suite.testEmojis = testrig.NewTestEmojis()
+ suite.testEmojiCategories = testrig.NewTestEmojiCategories()
}
func (suite *AdminStandardTestSuite) SetupTest() {