Fix compilation issue in tests.
This commit is contained in:
@@ -18,6 +18,7 @@ import io.mockk.verify
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.robolectric.RobolectricTestRunner
|
||||
import org.robolectric.RuntimeEnvironment
|
||||
import org.robolectric.annotation.Config
|
||||
|
||||
@RunWith(RobolectricTestRunner::class)
|
||||
@@ -66,5 +67,6 @@ class NotificationChannelsTest {
|
||||
) = DefaultNotificationChannels(
|
||||
notificationManager = notificationManager,
|
||||
stringProvider = FakeStringProvider(),
|
||||
context = RuntimeEnvironment.getApplication(),
|
||||
)
|
||||
}
|
||||
|
||||
@@ -332,5 +332,9 @@ fun createNotificationCreator(
|
||||
|
||||
fun createNotificationChannels(): NotificationChannels {
|
||||
val context = RuntimeEnvironment.getApplication()
|
||||
return DefaultNotificationChannels(NotificationManagerCompat.from(context), FakeStringProvider(""))
|
||||
return DefaultNotificationChannels(
|
||||
notificationManager = NotificationManagerCompat.from(context),
|
||||
stringProvider = FakeStringProvider(""),
|
||||
context = context,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user