add tests batch 20
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user