Skip to content

Commit

Permalink
* Fixes: Unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
AjeshRPai committed Oct 12, 2023
1 parent 66d10b6 commit 7b3649d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import org.wordpress.android.ui.utils.UiHelpers
import org.wordpress.android.ui.utils.UiString
import org.wordpress.android.util.JetpackMigrationLanguageUtil
import org.wordpress.android.util.LocaleManagerWrapper
import org.wordpress.android.util.analytics.AnalyticsTrackerWrapper
import org.wordpress.android.viewmodel.ContextProvider

@ExperimentalCoroutinesApi
Expand All @@ -46,6 +47,7 @@ class MenuViewModelTest : BaseUnitTest() {
private val refreshAppLanguageObserver: Observer<String> = mock()
private val contextProvider: ContextProvider = mock()
private val uiHelpers: UiHelpers = mock()
private val analyticsTrackerWrapper: AnalyticsTrackerWrapper = mock()

private lateinit var viewModel: MenuViewModel

Expand All @@ -69,7 +71,8 @@ class MenuViewModelTest : BaseUnitTest() {
siteItemsBuilder,
contextProvider,
uiHelpers,
testDispatcher()
testDispatcher(),
analyticsTrackerWrapper
)

viewModel.refreshAppLanguage.observeForever(refreshAppLanguageObserver)
Expand Down

0 comments on commit 7b3649d

Please sign in to comment.