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,11 +20,11 @@ class ApiDataMinimizationByRoleContractTest extends FullSurfaceE2EContractCase
foreach ([$this->parent, $this->studentUser] as $actor) {
$response = $this->requestAs($actor, 'GET', $uri);
$this->assertControlled($response, 'GET', $uri);
$this->assertNoServerError($response, 'data minimization at GET '.$uri);
$this->assertNoServerError($response, 'data minimization at GET ' . $uri);
if ($response->getStatusCode() >= 200 && $response->getStatusCode() < 300) {
foreach ($forbidden as $field) {
$this->assertStringNotContainsString('"'.$field.'"', $response->getContent(), 'Low-privilege response leaked '.$field.' at GET '.$uri);
$this->assertStringNotContainsString('"' . $field . '"', $response->getContent(), 'Low-privilege response leaked ' . $field . ' at GET ' . $uri);
}
}
}