mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-21 06:20:59 +08:00
Fix integration tests with updated category and tag fields
This commit is contained in:
@@ -70,11 +70,11 @@ class PublishModeIntegrationTest {
|
||||
String adminToken = registerAndLoginAsAdmin("admin", "admin@example.com");
|
||||
|
||||
ResponseEntity<Map> catResp = postJson("/api/categories",
|
||||
Map.of("name", "review"), adminToken);
|
||||
Map.of("name", "review", "describe", "d", "icon", "i"), adminToken);
|
||||
Long catId = ((Number)catResp.getBody().get("id")).longValue();
|
||||
|
||||
ResponseEntity<Map> tagResp = postJson("/api/tags",
|
||||
Map.of("name", "t1"), adminToken);
|
||||
Map.of("name", "t1", "describe", "d", "icon", "i"), adminToken);
|
||||
Long tagId = ((Number)tagResp.getBody().get("id")).longValue();
|
||||
|
||||
ResponseEntity<Map> postResp = postJson("/api/posts",
|
||||
|
||||
Reference in New Issue
Block a user