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,8 +20,8 @@ class ApiPrivacyRetentionAndErasureContractTest extends FullSurfaceE2EContractCa
$response = $this->json($method, $this->materializePath($uri), $this->payloadFor($method, $uri));
$this->assertStatusIn($response, [400, 401, 403, 404, 405, 419, 422], 'public privacy mutation '.$method.' '.$uri);
$this->assertNoServerError($response, 'public privacy mutation '.$method.' '.$uri);
$this->assertStatusIn($response, [400, 401, 403, 404, 405, 419, 422], 'public privacy mutation ' . $method . ' ' . $uri);
$this->assertNoServerError($response, 'public privacy mutation ' . $method . ' ' . $uri);
}
}
@@ -39,10 +39,10 @@ class ApiPrivacyRetentionAndErasureContractTest extends FullSurfaceE2EContractCa
$response = $this->actingAs($this->actorFor($uri), 'api')->getJson($this->materializePath($uri));
$this->assertControlled($response, 'GET', $uri);
$this->assertNoServerError($response, 'privacy export/read at '.$uri);
$this->assertNoServerError($response, 'privacy export/read at ' . $uri);
foreach ($forbidden as $needle) {
$this->assertStringNotContainsStringIgnoringCase($needle, $response->getContent(), $uri.' must not leak '.$needle);
$this->assertStringNotContainsStringIgnoringCase($needle, $response->getContent(), $uri . ' must not leak ' . $needle);
}
}
}