diff --git a/vector/src/test/java/im/vector/app/features/spaces/notification/GetNotificationCountForSpacesUseCaseTest.kt b/vector/src/test/java/im/vector/app/features/spaces/notification/GetNotificationCountForSpacesUseCaseTest.kt index 2813b9d79f..8d4bdb1b30 100644 --- a/vector/src/test/java/im/vector/app/features/spaces/notification/GetNotificationCountForSpacesUseCaseTest.kt +++ b/vector/src/test/java/im/vector/app/features/spaces/notification/GetNotificationCountForSpacesUseCaseTest.kt @@ -62,7 +62,7 @@ internal class GetNotificationCountForSpacesUseCaseTest { } @Test - fun `given space filter and hide invites when execute then correct notification count is returned`() = runTest { + fun `given space filter and auto accept invites when execute then correct notification count is returned`() = runTest { // given val spaceFilter = SpaceFilter.NoFilter val pagedList = mockk>() @@ -78,7 +78,7 @@ internal class GetNotificationCountForSpacesUseCaseTest { fakeActiveSessionHolder.fakeSession .fakeRoomService .givenGetNotificationCountForRoomsReturns(expectedNotificationCount) - fakeAutoAcceptInvites._hideInvites = true + fakeAutoAcceptInvites._isEnabled = true // When val testObserver = getNotificationCountForSpacesUseCase.execute(spaceFilter).test(this) @@ -121,7 +121,7 @@ internal class GetNotificationCountForSpacesUseCaseTest { fakeActiveSessionHolder.fakeSession .fakeRoomService .givenGetRoomSummaries(invitedRooms) - fakeAutoAcceptInvites._hideInvites = false + fakeAutoAcceptInvites._isEnabled = false val expectedNotificationCount = RoomAggregateNotificationCount( notificationCount = notificationCount.notificationCount + invitedRooms.size, highlightCount = notificationCount.highlightCount + invitedRooms.size, diff --git a/vector/src/test/java/im/vector/app/test/fakes/FakeAutoAcceptInvites.kt b/vector/src/test/java/im/vector/app/test/fakes/FakeAutoAcceptInvites.kt index d1160cedfd..778c2f113d 100644 --- a/vector/src/test/java/im/vector/app/test/fakes/FakeAutoAcceptInvites.kt +++ b/vector/src/test/java/im/vector/app/test/fakes/FakeAutoAcceptInvites.kt @@ -21,11 +21,7 @@ import im.vector.app.features.invite.AutoAcceptInvites class FakeAutoAcceptInvites : AutoAcceptInvites { var _isEnabled: Boolean = false - var _hideInvites: Boolean = false override val isEnabled: Boolean get() = _isEnabled - - override val hideInvites: Boolean - get() = _hideInvites }