Skip to content

Commit

Permalink
Adapt unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vgarciabnz authored and ferdyrod committed Dec 15, 2023
1 parent 26c2d72 commit 771dc37
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,15 +383,15 @@ class SettingsRepositoryTest {
}

private fun configureSMSConfig() {
whenever(localDbRepository.isModuleEnabled) doReturn
whenever(localDbRepository.isModuleEnabled()) doReturn
Single.just(true)
whenever(localDbRepository.gatewayNumber) doReturn
whenever(localDbRepository.getGatewayNumber()) doReturn
Single.just("gatewaynumber")
whenever(localDbRepository.waitingForResultEnabled) doReturn
whenever(localDbRepository.getWaitingForResultEnabled()) doReturn
Single.just(true)
whenever(localDbRepository.confirmationSenderNumber) doReturn
whenever(localDbRepository.getConfirmationSenderNumber()) doReturn
Single.just("confirmationNumber")
whenever(localDbRepository.waitingResultTimeout) doReturn
whenever(localDbRepository.getWaitingResultTimeout()) doReturn
Single.just(120)
whenever(d2.smsModule().configCase()) doReturn
ConfigCase(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class SMSSyncProviderTest {
d2.smsModule().configCase(),
) doReturn mock()
whenever(
d2.smsModule().configCase().smsModuleConfig,
d2.smsModule().configCase().getSmsModuleConfig(),
) doReturn Single.just(smsConfig)
}

Expand Down Expand Up @@ -298,7 +298,7 @@ class SMSSyncProviderTest {
d2.smsModule().configCase(),
) doReturn mock()
whenever(
d2.smsModule().configCase().smsModuleConfig,
d2.smsModule().configCase().getSmsModuleConfig(),
) doReturn Single.just(smsConfig)
}
}

0 comments on commit 771dc37

Please sign in to comment.