fix gitlab tests
This commit is contained in:
@@ -63,16 +63,15 @@ class ApiDeepStateTransitionInvariantContractTest extends FullSurfaceE2EContract
|
||||
$response = $this->requestAs($this->actorFor($uri), $method, $uri, $payload);
|
||||
|
||||
if ($response->getStatusCode() >= 500) {
|
||||
$failures[] = "$method $uri crashed during $domain transition probe: ".$response->getContent();
|
||||
|
||||
$failures[] = "$method $uri crashed during $domain transition probe: " . $response->getContent();
|
||||
continue;
|
||||
}
|
||||
|
||||
if (! in_array($response->getStatusCode(), $this->controlledStatuses($method), true)) {
|
||||
$failures[] = "$method $uri returned unexpected {$response->getStatusCode()} during $domain transition probe: ".$response->getContent();
|
||||
$failures[] = "$method $uri returned unexpected {$response->getStatusCode()} during $domain transition probe: " . $response->getContent();
|
||||
}
|
||||
}
|
||||
|
||||
$this->assertSame([], $failures, ucfirst($domain)." state transitions must be controlled:\n".implode("\n", $failures));
|
||||
$this->assertSame([], $failures, ucfirst($domain) . " state transitions must be controlled:\n" . implode("\n", $failures));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user