Adopt new canOwnUser* power level methods instead of the throwing ones.

This commit is contained in:
Stefan Ceriu
2025-06-25 11:34:51 +03:00
committed by Stefan Ceriu
parent 374fb722c6
commit c7ff6c019d
11 changed files with 50 additions and 29 deletions
@@ -520,6 +520,7 @@ class TimelineViewModelTests: XCTestCase {
let powerLevelsProxyMock = RoomPowerLevelsProxyMock(configuration: .init())
powerLevelsProxyMock.canUserPinOrUnpinUserIDReturnValue = .success(false)
powerLevelsProxyMock.canOwnUserPinOrUnpinReturnValue = false
roomProxyMock.powerLevelsReturnValue = .success(powerLevelsProxyMock)
let roomInfoProxyMock = RoomInfoProxyMock(configuration)