Fix Laravel Pint formatting
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user