fix test errors
API CI/CD / Validate (composer + pint) (push) Successful in 2m47s
API CI/CD / Test (PHPUnit) (push) Failing after 3m8s
API CI/CD / Build frontend assets (push) Failing after 5m22s
API CI/CD / Security audit (push) Failing after 34s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped

This commit is contained in:
root
2026-06-26 15:37:03 -04:00
parent 2ad6e9cf02
commit 5e35fefd69
56 changed files with 313 additions and 86 deletions
@@ -371,10 +371,10 @@ class ApiFullSurfaceEndToEndContractTest extends TestCase
private function allowedContractStatuses(string $method): array
{
return match ($method) {
'POST' => [200, 201, 202, 204, 302, 400, 401, 403, 404, 405, 409, 419, 422],
'PUT', 'PATCH' => [200, 202, 204, 302, 400, 401, 403, 404, 405, 409, 419, 422],
'DELETE' => [200, 202, 204, 302, 400, 401, 403, 404, 405, 409, 419, 422],
default => [200, 204, 302, 304, 400, 401, 403, 404, 405, 409, 419, 422],
'POST' => [200, 201, 202, 204, 302, 400, 401, 403, 404, 405, 409, 419, 422, 429],
'PUT', 'PATCH' => [200, 202, 204, 302, 400, 401, 403, 404, 405, 409, 419, 422, 429],
'DELETE' => [200, 202, 204, 302, 400, 401, 403, 404, 405, 409, 419, 422, 429],
default => [200, 204, 302, 304, 400, 401, 403, 404, 405, 409, 419, 422, 429],
};
}
}