Skip to content

Commit

Permalink
Update OverviewUseCaseTest.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
ravishanker committed Jan 30, 2024
1 parent c144d63 commit 8842976
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ import org.wordpress.android.ui.stats.refresh.lists.sections.granular.SelectedDa
import org.wordpress.android.ui.stats.refresh.lists.widget.WidgetUpdater.StatsWidgetUpdaters
import org.wordpress.android.ui.stats.refresh.utils.StatsDateFormatter
import org.wordpress.android.ui.stats.refresh.utils.StatsSiteProvider
import org.wordpress.android.ui.stats.refresh.utils.StatsUtils
import org.wordpress.android.util.LocaleManagerWrapper
import org.wordpress.android.util.analytics.AnalyticsTrackerWrapper
import org.wordpress.android.util.config.StatsTrafficTabFeatureConfig
import org.wordpress.android.viewmodel.ResourceProvider
import java.util.Calendar

Expand Down Expand Up @@ -77,6 +79,13 @@ class OverviewUseCaseTest : BaseUnitTest() {

@Mock
lateinit var localeManagerWrapper: LocaleManagerWrapper

@Mock
lateinit var statsUtils: StatsUtils

@Mock
lateinit var trafficTabFeatureConfig: StatsTrafficTabFeatureConfig

private lateinit var useCase: OverviewUseCase
private val site = SiteModel()
private val siteId = 1L
Expand All @@ -100,7 +109,9 @@ class OverviewUseCaseTest : BaseUnitTest() {
analyticsTrackerWrapper,
statsWidgetUpdaters,
localeManagerWrapper,
resourceProvider
resourceProvider,
statsUtils,
trafficTabFeatureConfig
)
site.siteId = siteId
whenever(statsSiteProvider.siteModel).thenReturn(site)
Expand Down

0 comments on commit 8842976

Please sign in to comment.