add tests batch 20

This commit is contained in:
root
2026-06-09 01:03:53 -04:00
parent 95efb9652e
commit 6be4875c5e
1502 changed files with 13797 additions and 11313 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;
}
}