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
@@ -27,7 +27,7 @@ class ApiBusinessRuleEdgeCaseContractTest extends FullSurfaceE2EContractCase
$response = $this->requestAs($this->actorFor($uri), $method, $uri, $payload);
$this->assertNoServerError($response, "$method $uri mismatched academic context");
$this->assertStatusIn($response, [200, 201, 202, 204, 302, 400, 401, 403, 404, 409, 419, 422], "$method $uri mismatched academic context");
$this->assertStringNotContainsStringIgnoringCase('foreign key constraint', $response->getContent(), $uri . ' should validate academic context before DB failure leaks.');
$this->assertStringNotContainsStringIgnoringCase('foreign key constraint', $response->getContent(), $uri.' should validate academic context before DB failure leaks.');
}
}
@@ -51,8 +51,8 @@ class ApiBusinessRuleEdgeCaseContractTest extends FullSurfaceE2EContractCase
$response = $this->requestAs($this->admin, $method, $uri, $payload);
$this->assertNoServerError($response, "$method $uri amount $amount");
$this->assertStringNotContainsStringIgnoringCase('decimal', $response->getContent(), $uri . ' should not leak decimal cast internals.');
$this->assertStringNotContainsStringIgnoringCase('SQLSTATE', $response->getContent(), $uri . ' should not leak SQLSTATE for financial edge cases.');
$this->assertStringNotContainsStringIgnoringCase('decimal', $response->getContent(), $uri.' should not leak decimal cast internals.');
$this->assertStringNotContainsStringIgnoringCase('SQLSTATE', $response->getContent(), $uri.' should not leak SQLSTATE for financial edge cases.');
}
}
}