@@ -97,6 +97,7 @@ class SignInViewModelTest {
9797 every { config.isRegistrationEnabled() } returns true
9898 every { config.isLoginRegistrationEnabled() } returns true
9999 every { config.isSSOLoginEnabled() } returns false
100+ every { config.isSSODefaultLoginButton() } returns false
100101 }
101102
102103 @After
@@ -126,7 +127,8 @@ class SignInViewModelTest {
126127 infoType = " " ,
127128 calendarInteractor = calendarInteractor,
128129 calendarPreferences = calendarPreferences,
129- configuration = config
130+ configuration = config,
131+ currentLang = " EN"
130132 )
131133 viewModel.login(" " , " " )
132134 coVerify(exactly = 0 ) { interactor.login(any(), any()) }
@@ -164,6 +166,7 @@ class SignInViewModelTest {
164166 calendarInteractor = calendarInteractor,
165167 calendarPreferences = calendarPreferences,
166168 configuration = config,
169+ currentLang = " EN"
167170 )
168171 viewModel.login(
" [email protected] " ,
" " )
169172 coVerify(exactly = 0 ) { interactor.login(any(), any()) }
@@ -201,6 +204,7 @@ class SignInViewModelTest {
201204 calendarInteractor = calendarInteractor,
202205 calendarPreferences = calendarPreferences,
203206 configuration = config,
207+ currentLang = " EN"
204208 )
205209 viewModel.login(
" [email protected] " ,
" " )
206210
@@ -237,6 +241,7 @@ class SignInViewModelTest {
237241 calendarInteractor = calendarInteractor,
238242 calendarPreferences = calendarPreferences,
239243 configuration = config,
244+ currentLang = " EN"
240245 )
241246 viewModel.login(
" [email protected] " ,
" ed" )
242247
@@ -277,6 +282,7 @@ class SignInViewModelTest {
277282 calendarInteractor = calendarInteractor,
278283 calendarPreferences = calendarPreferences,
279284 configuration = config,
285+ currentLang = " EN"
280286 )
281287 coEvery { interactor.login(
" [email protected] " ,
" edx" ) } returns
Unit 282288 viewModel.login(
" [email protected] " ,
" edx" )
@@ -317,6 +323,7 @@ class SignInViewModelTest {
317323 calendarInteractor = calendarInteractor,
318324 calendarPreferences = calendarPreferences,
319325 configuration = config,
326+ currentLang = " EN"
320327 )
321328 coEvery { interactor.login(
" [email protected] " ,
" edx" ) } throws
UnknownHostException ()
322329 viewModel.login(
" [email protected] " ,
" edx" )
@@ -359,6 +366,7 @@ class SignInViewModelTest {
359366 calendarInteractor = calendarInteractor,
360367 calendarPreferences = calendarPreferences,
361368 configuration = config,
369+ currentLang = " EN"
362370 )
363371 coEvery { interactor.login(
" [email protected] " ,
" edx" ) } throws
EdxError .
InvalidGrantException ()
364372 viewModel.login(
" [email protected] " ,
" edx" )
@@ -401,6 +409,7 @@ class SignInViewModelTest {
401409 calendarInteractor = calendarInteractor,
402410 calendarPreferences = calendarPreferences,
403411 configuration = config,
412+ currentLang = " EN"
404413 )
405414 coEvery { interactor.login(
" [email protected] " ,
" edx" ) } throws
IllegalStateException ()
406415 viewModel.login(
" [email protected] " ,
" edx" )
0 commit comments