mirror of
https://github.com/element-hq/element-android
synced 2024-12-17 23:02:48 +03:00
Posthog: fix test. User consent must be provided to touch Posthog API.
This commit is contained in:
parent
c8277e2d43
commit
307ac4060e
1 changed files with 2 additions and 0 deletions
|
@ -97,6 +97,7 @@ class DefaultVectorAnalyticsTest {
|
||||||
@Test
|
@Test
|
||||||
fun `given lateinit user properties when valid analytics id updates then identify with lateinit properties`() = runTest {
|
fun `given lateinit user properties when valid analytics id updates then identify with lateinit properties`() = runTest {
|
||||||
fakeLateInitUserPropertiesFactory.givenCreatesProperties(A_LATE_INIT_USER_PROPERTIES)
|
fakeLateInitUserPropertiesFactory.givenCreatesProperties(A_LATE_INIT_USER_PROPERTIES)
|
||||||
|
fakeAnalyticsStore.givenUserContent(true)
|
||||||
|
|
||||||
fakeAnalyticsStore.givenAnalyticsId(AN_ANALYTICS_ID)
|
fakeAnalyticsStore.givenAnalyticsId(AN_ANALYTICS_ID)
|
||||||
|
|
||||||
|
@ -106,6 +107,7 @@ class DefaultVectorAnalyticsTest {
|
||||||
@Test
|
@Test
|
||||||
fun `when signing out then resets posthog and closes Sentry`() = runTest {
|
fun `when signing out then resets posthog and closes Sentry`() = runTest {
|
||||||
fakeAnalyticsStore.allowSettingAnalyticsIdToCallBackingFlow()
|
fakeAnalyticsStore.allowSettingAnalyticsIdToCallBackingFlow()
|
||||||
|
fakeAnalyticsStore.givenUserContent(true)
|
||||||
|
|
||||||
defaultVectorAnalytics.onSignOut()
|
defaultVectorAnalytics.onSignOut()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue