mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 05:36:53 +00:00
Add category to badges
This commit is contained in:
1 parent
ce3835e176
commit
08c6a8c2e5
6 files changed
+34
-13
No files matched your search
+2
-2
@@ -72,7 +72,7 @@ public class ConfiguredProfileBadgeConverterTest {
|
||||
}
|
||||
|
||||
private static BadgeConfiguration newBadge(int i) {
|
||||
return new BadgeConfiguration(idFor(i), imageUrlFor(i));
|
||||
return new BadgeConfiguration(idFor(i), imageUrlFor(i), "other");
|
||||
}
|
||||
|
||||
private BadgesConfiguration createBadges(int count) {
|
||||
@@ -140,7 +140,7 @@ public class ConfiguredProfileBadgeConverterTest {
|
||||
arguments(idFor(0), expired, false, null),
|
||||
arguments(idFor(0), notExpired, false, null),
|
||||
arguments(idFor(0), expired, true, null),
|
||||
arguments(idFor(0), notExpired, true, new Badge(idFor(0), imageUrlFor(0), nameFor(0), desriptionFor(0))),
|
||||
arguments(idFor(0), notExpired, true, new Badge(idFor(0), "other", imageUrlFor(0), nameFor(0), desriptionFor(0))),
|
||||
arguments(idFor(1), expired, false, null),
|
||||
arguments(idFor(1), notExpired, false, null),
|
||||
arguments(idFor(1), expired, true, null),
|
||||
|
||||
+1
-1
@@ -104,7 +104,7 @@ class ProfileControllerTest {
|
||||
(acceptableLanguages, accountBadges) -> {
|
||||
try {
|
||||
return List.of(
|
||||
new Badge("TEST1", new URL("https://example.com/badge/1"), "Test Badge", "This badge is in unit tests.")
|
||||
new Badge("TEST1", "other", new URL("https://example.com/badge/1"), "Test Badge", "This badge is in unit tests.")
|
||||
);
|
||||
} catch (MalformedURLException e) {
|
||||
throw new AssertionError(e);
|
||||
|
||||
Reference in new issue
Block a user