Skip to content

fix(ads/admob): update test fakes for non-optional CapableAd.responseInfo#6849

Merged
polmiro merged 1 commit into
mainfrom
pol/ads-admob-fix-test-fakes
May 27, 2026
Merged

fix(ads/admob): update test fakes for non-optional CapableAd.responseInfo#6849
polmiro merged 1 commit into
mainfrom
pol/ads-admob-fix-test-fakes

Conversation

@polmiro

@polmiro polmiro commented May 27, 2026

Copy link
Copy Markdown
Member

Summary

  • Fix-forward for feat(ads/admob): add impression_id to SSV customRewardText payload #6841: the merged change made CapableAd.responseInfo non-optional, but the test fakes (FakeRewardedAd, FakeCapableAd) still declared it as ResponseInfo?, so the RevenueCatAdMobTests target no longer compiles on main.
  • Switches both fakes to a stored non-optional let responseInfo = GoogleMobileAds.ResponseInfo() to match the protocol.

Test plan

  • xcodebuild ... -workspace AdapterSDKs/RevenueCatAdMob -scheme RevenueCatAdMob test — 168 tests pass locally
  • CI: ci/circleci: revenuecat-admob-tests green

Note

Low Risk
Test-only changes with no production or security impact.

Overview
Restores RevenueCatAdMob test compilation after RewardVerification.CapableAd.responseInfo became non-optional. Test doubles FakeCapableAd and FakeRewardedAd now expose let responseInfo = GoogleMobileAds.ResponseInfo() instead of optional ResponseInfo?.

Reviewed by Cursor Bugbot for commit 8db7dba. Bugbot is set up for automated code reviews on this repo. Configure here.

…Info

Both FakeRewardedAd and FakeCapableAd still declared responseInfo as
Optional, breaking the test target's build after the protocol change.
@polmiro polmiro requested a review from a team as a code owner May 27, 2026 08:52
@polmiro polmiro added pr:fix A bug fix pr:other and removed pr:fix A bug fix labels May 27, 2026
@polmiro polmiro requested a review from ajpallares May 27, 2026 09:06
@polmiro polmiro enabled auto-merge (squash) May 27, 2026 09:07
@polmiro polmiro merged commit aa08488 into main May 27, 2026
45 of 46 checks passed
@polmiro polmiro deleted the pol/ads-admob-fix-test-fakes branch May 27, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants