Add missing test to RemoteConfig KTX
@@ -21,6 +21,7 @@ import com.google.firebase.remoteconfig.FirebaseRemoteConfig
import com.google.firebase.remoteconfig.FirebaseRemoteConfigValue
import com.google.firebase.remoteconfig.createRemoteConfig
import com.google.firebase.ktx.Firebase
+import com.google.firebase.platforminfo.UserAgentPublisher
import com.google.firebase.remoteconfig.internal.ConfigCacheClient
import com.google.firebase.remoteconfig.internal.ConfigFetchHandler
import com.google.firebase.remoteconfig.internal.ConfigGetParameterHandler
@@ -142,3 +143,12 @@ class ConfigTests : BaseTestCase() {
assertThat(remoteConfig["KEY"].asString()).isEqualTo("non default value")
}
}
+
+@RunWith(RobolectricTestRunner::class)
+class LibraryVersionTest : BaseTestCase() {
+ @Test
+ fun `library version should be registered with runtime`() {
+ val publisher = Firebase.app.get(UserAgentPublisher::class.java)
+ assertThat(publisher.userAgent).contains(LIBRARY_NAME)
+ }
+}
