quality: fix test after api removal
This commit is contained in:
parent
9b0b1fa112
commit
7780cdcea5
1 changed files with 0 additions and 2 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue