From 1cb72f7a4b65a087a4333c1a4ee9be116bea4c21 Mon Sep 17 00:00:00 2001 From: Xavier Molloy Date: Fri, 24 May 2024 10:43:49 +0200 Subject: [PATCH] fix: [ANDROAPP-6101] fix test --- .../eventCapture/EventCapturePresenterTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/test/java/org/dhis2/usescases/eventsWithoutRegistration/eventCapture/EventCapturePresenterTest.kt b/app/src/test/java/org/dhis2/usescases/eventsWithoutRegistration/eventCapture/EventCapturePresenterTest.kt index b2e18d7556d..0d16a9ae8be 100644 --- a/app/src/test/java/org/dhis2/usescases/eventsWithoutRegistration/eventCapture/EventCapturePresenterTest.kt +++ b/app/src/test/java/org/dhis2/usescases/eventsWithoutRegistration/eventCapture/EventCapturePresenterTest.kt @@ -258,7 +258,7 @@ class EventCapturePresenterTest { ) doReturn ValidationStrategy.ON_UPDATE_AND_INSERT val eventCompletionDialog: EventCompletionDialog = mock() whenever( - configureEventCompletionDialog.invoke(emptyList(), emptyMap(), emptyList(), true, null, true), + configureEventCompletionDialog.invoke(emptyList(), emptyMap(), emptyList(), true, null, false), ) doReturn eventCompletionDialog whenever(eventRepository.isCompletedEventExpired(any())) doReturn Observable.just(true) whenever(eventRepository.isEventEditable(any())) doReturn true @@ -281,7 +281,7 @@ class EventCapturePresenterTest { ) doReturn ValidationStrategy.ON_UPDATE_AND_INSERT val eventCompletionDialog: EventCompletionDialog = mock() whenever( - configureEventCompletionDialog.invoke(emptyList(), emptyMap(), emptyList(), true, null, true), + configureEventCompletionDialog.invoke(emptyList(), emptyMap(), emptyList(), true, null, false), ) doReturn eventCompletionDialog whenever(eventRepository.isCompletedEventExpired(any())) doReturn Observable.just(false) whenever(eventRepository.isEventEditable(any())) doReturn true