Issue 2477: Show account's creation date in Profile. (#2480)
* Show account's creation date in Profile. * Fix broken test. * Store account creation date in the Database. * Reformat and reposition Joined Date according to PR Feedback. * Revert "Store account creation date in the Database." This reverts commit d9761f53 as it's not needed. * Change Account's Creation Date to a java.util.Date. Update Test. * Fix wildcard import. * Show full month instead of an abbreviation. * Remove `lazy` usage in favor of local instantiation. Co-authored-by: Martin Marconcini <martin.marconcini.rodriguez@nl.abnamro.com> Co-authored-by: Konrad Pozniak <connyduck@users.noreply.github.com>
This commit is contained in:
parent
df49851042
commit
d97493d312
5 changed files with 56 additions and 17 deletions
|
@ -47,6 +47,8 @@ import org.robolectric.Robolectric
|
|||
import org.robolectric.Shadows.shadowOf
|
||||
import org.robolectric.annotation.Config
|
||||
import org.robolectric.fakes.RoboMenuItem
|
||||
import java.util.Date
|
||||
import kotlin.collections.HashMap
|
||||
|
||||
/**
|
||||
* Created by charlag on 3/7/18.
|
||||
|
@ -466,22 +468,23 @@ class ComposeActivityTest {
|
|||
null,
|
||||
listOf("en"),
|
||||
Account(
|
||||
"1",
|
||||
"admin",
|
||||
"admin",
|
||||
"admin",
|
||||
"",
|
||||
"https://example.token",
|
||||
"",
|
||||
"",
|
||||
false,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
null,
|
||||
false,
|
||||
emptyList(),
|
||||
emptyList()
|
||||
id = "1",
|
||||
localUsername = "admin",
|
||||
username = "admin",
|
||||
displayName = "admin",
|
||||
createdAt = Date(),
|
||||
note = "",
|
||||
url = "https://example.token",
|
||||
avatar = "",
|
||||
header = "",
|
||||
locked = false,
|
||||
statusesCount = 0,
|
||||
followersCount = 0,
|
||||
followingCount = 0,
|
||||
source = null,
|
||||
bot = false,
|
||||
emojis = emptyList(),
|
||||
fields = emptyList(),
|
||||
),
|
||||
maximumLegacyTootCharacters,
|
||||
null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue