From ef3c9dcbb8148fb21a92b8a12e373ab472b4911c Mon Sep 17 00:00:00 2001 From: "Ronald A. Richardson" Date: Wed, 14 Oct 2026 13:09:12 +0800 Subject: [PATCH] test(customers): the over-budget login case has no email on file 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. --- server/tests/ApiCustomerControllerContractsTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/server/tests/ApiCustomerControllerContractsTest.php b/server/tests/ApiCustomerControllerContractsTest.php index 81edbd4f6..00dffea9c 100644 --- a/server/tests/ApiCustomerControllerContractsTest.php +++ b/server/tests/ApiCustomerControllerContractsTest.php @@ -996,6 +996,7 @@ function fleetopsApiCustomerJson($response): array // Over budget with no email on file: the 429 and its Retry-After reach the app. $limited = fleetopsApiCustomerController(); + $limited->activeUser->email = null; $limited->smsVerificationThrows = SmsBlockedException::limited('company_per_hour', 45); $login = $limited->loginWithPhone(Request::create('/v1/customers/login/phone', 'POST', [ 'phone' => '15551234567',