Skip to content

fix(contact-verification): pass analytics param in PhoneVerificationViewModel tests#1079

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/phone-verification-test-analytics-param
Jul 14, 2026
Merged

fix(contact-verification): pass analytics param in PhoneVerificationViewModel tests#1079
bmc08gt merged 1 commit into
code/cashfrom
fix/phone-verification-test-analytics-param

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

CI on code/cash is red because :apps:flipcash:features:contact-verification:compileDebugUnitTestKotlin fails to compile:

PhoneVerificationViewModelErrorTest.kt:61:13 No value passed for parameter 'analytics'.
PhoneVerificationViewModelTest.kt:52:9 No value passed for parameter 'analytics'.

The phone verification funnel analytics work (#1076) added a required analytics: FlipcashAnalyticsService constructor parameter to PhoneVerificationViewModel, but the two unit-test factories that construct the view model were never updated. Because the analytics PR and the failing PR (#1077) landed independently, neither surfaced the break until both were on code/cash.

Fix

Pass a relaxed mock (mockk(relaxed = true)) for analytics in both test factories. No production code changes.

Testing

./gradlew :apps:flipcash:features:contact-verification:testDebugUnitTest
BUILD SUCCESSFUL

@github-actions github-actions Bot added type: fix Bug fix area: onboarding and removed type: fix Bug fix labels Jul 14, 2026
…iewModel tests

The phone verification funnel analytics change (#1076) added a required
`analytics: FlipcashAnalyticsService` constructor parameter to
PhoneVerificationViewModel, but the unit tests were not updated, breaking
compilation of :apps:flipcash:features:contact-verification:compileDebugUnitTestKotlin
on code/cash. Pass a relaxed mock in both test factories.
@bmc08gt bmc08gt force-pushed the fix/phone-verification-test-analytics-param branch from a9ee640 to 38e5fe1 Compare July 14, 2026 20:16
@github-actions github-actions Bot added the type: fix Bug fix label Jul 14, 2026
@bmc08gt bmc08gt merged commit 00d0252 into code/cash Jul 14, 2026
3 checks passed
@bmc08gt bmc08gt deleted the fix/phone-verification-test-analytics-param branch July 14, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant