Skip to content

Commit

Permalink
Fix SelectedSectionManagerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
irfano committed Mar 2, 2024
1 parent 82a97eb commit e604bec
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ import org.mockito.kotlin.whenever
import org.wordpress.android.BaseUnitTest
import org.wordpress.android.ui.stats.refresh.lists.StatsListViewModel.StatsSection
import org.wordpress.android.ui.stats.refresh.lists.StatsListViewModel.StatsSection.MONTHS
import org.wordpress.android.util.config.StatsTrafficTabFeatureConfig

@ExperimentalCoroutinesApi
class SelectedSectionManagerTest : BaseUnitTest() {
@Mock
private lateinit var trafficTabFeatureConfig: StatsTrafficTabFeatureConfig

@Mock
lateinit var sharedPreferences: SharedPreferences

Expand All @@ -25,7 +29,7 @@ class SelectedSectionManagerTest : BaseUnitTest() {

@Before
fun setUp() {
selectedSectionManager = SelectedSectionManager(sharedPreferences)
selectedSectionManager = SelectedSectionManager(sharedPreferences, trafficTabFeatureConfig)
whenever(sharedPreferences.edit()).thenReturn(sharedPreferencesEditor)
}

Expand Down

0 comments on commit e604bec

Please sign in to comment.