Skip to content

Commit f8dc40e

Browse files
committed
Fixing tests
1 parent 1294e3d commit f8dc40e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

WordPress/src/test/java/org/wordpress/android/support/aibot/ui/AIBotSupportViewModelTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class AIBotSupportViewModelTest : BaseUnitTest() {
5555
whenever(accountStore.account).thenReturn(accountModel)
5656
whenever(accountStore.hasAccessToken()).thenReturn(true)
5757
whenever(accountStore.accessToken).thenReturn(testAccessToken)
58+
whenever(networkUtilsWrapper.isNetworkAvailable()).thenReturn(true)
5859

5960
viewModel = AIBotSupportViewModel(
6061
accountStore = accountStore,

WordPress/src/test/java/org/wordpress/android/support/he/ui/HESupportViewModelTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class HESupportViewModelTest : BaseUnitTest() {
5656
whenever(accountStore.account).thenReturn(accountModel)
5757
whenever(accountStore.hasAccessToken()).thenReturn(true)
5858
whenever(accountStore.accessToken).thenReturn(testAccessToken)
59+
whenever(networkUtilsWrapper.isNetworkAvailable()).thenReturn(true)
5960

6061
viewModel = HESupportViewModel(
6162
accountStore = accountStore,

0 commit comments

Comments
 (0)