mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
quality: fix test after api removal
This commit is contained in:
-2
@@ -386,14 +386,12 @@ class UserProfilePresenterTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun createFakeMatrixClient(
|
private fun createFakeMatrixClient(
|
||||||
isUserVerified: Boolean = true,
|
|
||||||
userIdentityState: IdentityState? = null,
|
userIdentityState: IdentityState? = null,
|
||||||
ignoreUserResult: (UserId) -> Result<Unit> = { Result.success(Unit) },
|
ignoreUserResult: (UserId) -> Result<Unit> = { Result.success(Unit) },
|
||||||
unIgnoreUserResult: (UserId) -> Result<Unit> = { Result.success(Unit) },
|
unIgnoreUserResult: (UserId) -> Result<Unit> = { Result.success(Unit) },
|
||||||
ignoredUsersFlow: StateFlow<ImmutableList<UserId>> = MutableStateFlow(persistentListOf())
|
ignoredUsersFlow: StateFlow<ImmutableList<UserId>> = MutableStateFlow(persistentListOf())
|
||||||
) = FakeMatrixClient(
|
) = FakeMatrixClient(
|
||||||
encryptionService = FakeEncryptionService(
|
encryptionService = FakeEncryptionService(
|
||||||
isUserVerifiedResult = { Result.success(isUserVerified) },
|
|
||||||
getUserIdentityResult = { Result.success(userIdentityState) }
|
getUserIdentityResult = { Result.success(userIdentityState) }
|
||||||
),
|
),
|
||||||
ignoreUserResult = ignoreUserResult,
|
ignoreUserResult = ignoreUserResult,
|
||||||
|
|||||||
Reference in New Issue
Block a user