Skip to content

test: run the suite against core-api 1.6.69 - #399

Merged
roncodes merged 1 commit into
release/v0.6.72from
fix/sms-refusal-test-no-email
Oct 14, 2026
Merged

roncodes merged 1 commit into
release/v0.6.72from
fix/sms-refusal-test-no-email

Conversation

@roncodes

@roncodes roncodes commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Fixes PHP CI / build on #372 now that fleetbase/core-api 1.6.69 resolves and the suite runs against the real core for the first time. Every test file was run locally through scripts/pest-runner.php (507 files): three failed, all test-side.

  1. ApiCustomerControllerContractsTest: the "over budget with no email on file" case used the shared fixture customer, who has an email, so loginWithPhone correctly fell back to email (200) instead of surfacing the 429. The test clears the email for that case.
  2. DriverControllerAuthFlowsTest (4 tests): the harness never turned the core SMS guard off, so its counters lived in the shared array cache and a second text to the same number inside a file tripped the 60-second cooldown: a 429 "Try again in a minute" where the tests expect the transport failure or the refusal they stage from the provider fake. scripts/pest-bootstrap.php now seeds sms.guard.enabled = false, the same default core-api's and storefront's bootstraps use.
  3. CustomerControllerHelperSeamsTest: the verification-code seam test reused one code for two lookups and omitted the purpose. A code is used up by the lookup that accepts it, and the live-code query is per purpose, so each check gets its own row and carries for.

No controller changes.

The fixture customer has an email, so the refusal fell back to email and
answered 200 where the test expects the guard's 429. Never ran green: PHP CI
could not resolve core-api ^1.6.69 until it was tagged.
@roncodes
roncodes merged commit 91af660 into release/v0.6.72 Oct 14, 2026
4 of 6 checks passed
@roncodes
roncodes deleted the fix/sms-refusal-test-no-email branch October 14, 2026 05:19
@roncodes roncodes changed the title test(customers): the over-budget login case has no email on file test: run the suite against core-api 1.6.69 Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant