@@ -39,7 +39,7 @@ class SettingsCacheTest {
39
39
40
40
@Test
41
41
fun sessionCache_returnsEmptyCache () {
42
- val context = FakeFirebaseApp .fakeFirebaseApp() .applicationContext
42
+ val context = FakeFirebaseApp ().firebaseApp .applicationContext
43
43
val settingsCache = SettingsCache (context.dataStore)
44
44
assertThat(settingsCache.sessionSamplingRate()).isNull()
45
45
assertThat(settingsCache.sessionsEnabled()).isNull()
@@ -49,7 +49,7 @@ class SettingsCacheTest {
49
49
50
50
@Test
51
51
fun sessionCache_SettingConfigsReturnsCachedValue () {
52
- val context = FakeFirebaseApp .fakeFirebaseApp() .applicationContext
52
+ val context = FakeFirebaseApp ().firebaseApp .applicationContext
53
53
val settingsCache = SettingsCache (context.dataStore)
54
54
55
55
runBlocking {
@@ -70,7 +70,7 @@ class SettingsCacheTest {
70
70
71
71
@Test
72
72
fun sessionCache_SettingConfigsReturnsCacheExpiredWithShortCacheDuration () {
73
- val context = FakeFirebaseApp .fakeFirebaseApp() .applicationContext
73
+ val context = FakeFirebaseApp ().firebaseApp .applicationContext
74
74
val settingsCache = SettingsCache (context.dataStore)
75
75
76
76
runBlocking {
@@ -91,7 +91,7 @@ class SettingsCacheTest {
91
91
92
92
@Test
93
93
fun sessionCache_SettingConfigsReturnsCachedValueWithPartialConfigs () {
94
- val context = FakeFirebaseApp .fakeFirebaseApp() .applicationContext
94
+ val context = FakeFirebaseApp ().firebaseApp .applicationContext
95
95
val settingsCache = SettingsCache (context.dataStore)
96
96
97
97
runBlocking {
@@ -111,7 +111,7 @@ class SettingsCacheTest {
111
111
112
112
@Test
113
113
fun sessionCache_SettingConfigsAllowsUpdateConfigsAndCachesValues () {
114
- val context = FakeFirebaseApp .fakeFirebaseApp() .applicationContext
114
+ val context = FakeFirebaseApp ().firebaseApp .applicationContext
115
115
val settingsCache = SettingsCache (context.dataStore)
116
116
117
117
runBlocking {
@@ -143,7 +143,7 @@ class SettingsCacheTest {
143
143
144
144
@Test
145
145
fun sessionCache_SettingConfigsCleansCacheForNullValues () {
146
- val context = FakeFirebaseApp .fakeFirebaseApp() .applicationContext
146
+ val context = FakeFirebaseApp ().firebaseApp .applicationContext
147
147
val settingsCache = SettingsCache (context.dataStore)
148
148
149
149
runBlocking {
0 commit comments