add tests batch 20
This commit is contained in:
@@ -11,19 +11,19 @@ trait AssertsE2EApiResponses
|
||||
$this->assertLessThan(
|
||||
500,
|
||||
$response->getStatusCode(),
|
||||
$context.' should return a controlled response, not a 5xx crash. Body: '.$response->getContent()
|
||||
$context . ' should return a controlled response, not a 5xx crash. Body: ' . $response->getContent()
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<int, int> $statuses
|
||||
* @param array<int, int> $statuses
|
||||
*/
|
||||
protected function assertStatusIn(TestResponse $response, array $statuses, string $context): void
|
||||
{
|
||||
$this->assertContains(
|
||||
$response->getStatusCode(),
|
||||
$statuses,
|
||||
$context.' returned unexpected status '.$response->getStatusCode().'. Body: '.$response->getContent()
|
||||
$context . ' returned unexpected status ' . $response->getStatusCode() . '. Body: ' . $response->getContent()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user