diff --git a/course/src/test/java/org/openedx/course/presentation/container/CourseContainerViewModelTest.kt b/course/src/test/java/org/openedx/course/presentation/container/CourseContainerViewModelTest.kt index 3e9016a64..181ee5faa 100644 --- a/course/src/test/java/org/openedx/course/presentation/container/CourseContainerViewModelTest.kt +++ b/course/src/test/java/org/openedx/course/presentation/container/CourseContainerViewModelTest.kt @@ -35,6 +35,7 @@ import org.openedx.core.domain.model.CourseDatesCalendarSync import org.openedx.core.domain.model.CourseStructure import org.openedx.core.domain.model.CoursewareAccess import org.openedx.core.domain.model.EnrollmentDetails +import org.openedx.core.presentation.global.AppData import org.openedx.core.system.CalendarManager import org.openedx.core.system.ResourceManager import org.openedx.core.system.connection.NetworkConnection @@ -71,6 +72,7 @@ class CourseContainerViewModelTest { private val imageProcessor = mockk() private val courseRouter = mockk() private val courseApi = mockk() + private val appData = mockk() private val openEdx = "OpenEdx" private val calendarTitle = "OpenEdx - Abc" @@ -175,7 +177,7 @@ class CourseContainerViewModelTest { "", "", "", - versionName = "", + appData, config, interactor, calendarManager, @@ -211,7 +213,7 @@ class CourseContainerViewModelTest { "", "", "", - versionName = "", + appData, config, interactor, calendarManager, @@ -247,7 +249,7 @@ class CourseContainerViewModelTest { "", "", "", - versionName = "", + appData, config, interactor, calendarManager, @@ -282,7 +284,7 @@ class CourseContainerViewModelTest { "", "", "", - versionName = "", + appData, config, interactor, calendarManager, @@ -320,7 +322,7 @@ class CourseContainerViewModelTest { "", "", "", - versionName = "", + appData, config, interactor, calendarManager, @@ -353,7 +355,7 @@ class CourseContainerViewModelTest { "", "", "", - versionName = "", + appData, config, interactor, calendarManager, @@ -386,7 +388,7 @@ class CourseContainerViewModelTest { "", "", "", - versionName = "", + appData, config, interactor, calendarManager, diff --git a/dashboard/src/test/java/org/openedx/dashboard/presentation/DashboardViewModelTest.kt b/dashboard/src/test/java/org/openedx/dashboard/presentation/DashboardViewModelTest.kt index 016afdad1..622f51caf 100644 --- a/dashboard/src/test/java/org/openedx/dashboard/presentation/DashboardViewModelTest.kt +++ b/dashboard/src/test/java/org/openedx/dashboard/presentation/DashboardViewModelTest.kt @@ -35,6 +35,7 @@ import org.openedx.core.domain.model.DashboardCourseList import org.openedx.core.domain.model.IAPConfig import org.openedx.core.domain.model.Pagination import org.openedx.core.presentation.IAPAnalytics +import org.openedx.core.presentation.global.AppData import org.openedx.core.system.ResourceManager import org.openedx.core.system.connection.NetworkConnection import org.openedx.core.system.notifier.AppUpgradeNotifier @@ -64,6 +65,7 @@ class DashboardViewModelTest { private val iapAnalytics = mockk() private val appUpgradeNotifier = mockk() private val corePreferences = mockk() + private val appData = mockk() private val noInternet = "Slow or no internet connection" private val somethingWrong = "Something went wrong" @@ -103,7 +105,7 @@ class DashboardViewModelTest { every { corePreferences.appConfig } returns appConfig val viewModel = DashboardListViewModel( - "", + appData, config, networkConnection, interactor, @@ -134,7 +136,7 @@ class DashboardViewModelTest { every { corePreferences.appConfig } returns appConfig val viewModel = DashboardListViewModel( - "", + appData, config, networkConnection, interactor, @@ -166,7 +168,7 @@ class DashboardViewModelTest { every { corePreferences.appConfig } returns appConfig val viewModel = DashboardListViewModel( - "", + appData, config, networkConnection, interactor, @@ -198,7 +200,7 @@ class DashboardViewModelTest { every { corePreferences.appConfig } returns appConfig val viewModel = DashboardListViewModel( - "", + appData, config, networkConnection, interactor, @@ -240,7 +242,7 @@ class DashboardViewModelTest { every { corePreferences.appConfig.iapConfig } returns appConfig.iapConfig val viewModel = DashboardListViewModel( - "", + appData, config, networkConnection, interactor, @@ -270,7 +272,7 @@ class DashboardViewModelTest { every { corePreferences.appConfig } returns appConfig coEvery { interactor.getEnrolledCourses(any()) } returns dashboardCourseList val viewModel = DashboardListViewModel( - "", + appData, config, networkConnection, interactor, @@ -304,7 +306,7 @@ class DashboardViewModelTest { every { corePreferences.appConfig } returns appConfig coEvery { interactor.getEnrolledCourses(any()) } returns dashboardCourseList val viewModel = DashboardListViewModel( - "", + appData, config, networkConnection, interactor, @@ -342,7 +344,7 @@ class DashboardViewModelTest { coEvery { iapNotifier.send(any()) } returns Unit val viewModel = DashboardListViewModel( - "", + appData, config, networkConnection, interactor, @@ -386,7 +388,7 @@ class DashboardViewModelTest { coEvery { iapNotifier.send(any()) } returns Unit val viewModel = DashboardListViewModel( - "", + appData, config, networkConnection, interactor, @@ -419,7 +421,7 @@ class DashboardViewModelTest { coEvery { iapNotifier.notifier } returns flow { emit(CourseDataUpdated()) } every { corePreferences.appConfig } returns appConfig val viewModel = DashboardListViewModel( - "", + appData, config, networkConnection, interactor,