fix tests

This commit is contained in:
root
2026-06-11 11:46:12 -04:00
parent c91fa2ce4d
commit 5ead80fdc7
1489 changed files with 11349 additions and 10305 deletions
@@ -20,7 +20,7 @@ class ApiRateLimitTokenAndSessionHardeningContractTest extends FullSurfaceE2ECon
for ($attempt = 1; $attempt <= 8; $attempt++) {
$response = $this->postJson($path, [
'email' => $this->admin->email,
'password' => 'definitely-not-the-password-' . $attempt,
'password' => 'definitely-not-the-password-'.$attempt,
]);
$this->assertStatusIn($response, [400, 401, 403, 419, 422, 429], "Bad login attempt {$attempt} for {$path}");
@@ -76,7 +76,7 @@ class ApiRateLimitTokenAndSessionHardeningContractTest extends FullSurfaceE2ECon
private function routeExistsFor(string $method, string $path): bool
{
foreach ($this->apiRoutes() as $route) {
if ($this->primaryMethod($route) === $method && '/' . ltrim($route->uri(), '/') === $path) {
if ($this->primaryMethod($route) === $method && '/'.ltrim($route->uri(), '/') === $path) {
return true;
}
}