add tests batch 20
This commit is contained in:
@@ -15,7 +15,7 @@ class ApiDataShapeBackwardCompatibilityContractTest extends FullSurfaceE2EContra
|
||||
$response = $this->actingAs($this->actorFor($uri), 'api')->getJson($this->materializePath($uri));
|
||||
|
||||
$this->assertControlled($response, 'GET', $uri);
|
||||
$this->assertNoServerError($response, 'collection envelope '.$uri);
|
||||
$this->assertNoServerError($response, 'collection envelope ' . $uri);
|
||||
|
||||
if ($response->getStatusCode() !== 200 || ! $this->isJsonString($response->getContent())) {
|
||||
continue;
|
||||
@@ -31,7 +31,7 @@ class ApiDataShapeBackwardCompatibilityContractTest extends FullSurfaceE2EContra
|
||||
|| array_key_exists('message', $payload)
|
||||
|| array_key_exists('status', $payload)
|
||||
),
|
||||
$uri.' should keep a predictable collection/read envelope.'
|
||||
$uri . ' should keep a predictable collection/read envelope.'
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -45,7 +45,7 @@ class ApiDataShapeBackwardCompatibilityContractTest extends FullSurfaceE2EContra
|
||||
$response = $this->actingAs($this->actorFor($uri), 'api')->getJson($this->materializePath($uri));
|
||||
|
||||
$this->assertControlled($response, 'GET', $uri);
|
||||
$this->assertNoServerError($response, 'detail envelope '.$uri);
|
||||
$this->assertNoServerError($response, 'detail envelope ' . $uri);
|
||||
|
||||
if ($response->getStatusCode() !== 200 || ! $this->isJsonString($response->getContent())) {
|
||||
continue;
|
||||
@@ -54,7 +54,7 @@ class ApiDataShapeBackwardCompatibilityContractTest extends FullSurfaceE2EContra
|
||||
$payload = $response->json();
|
||||
$this->assertTrue(
|
||||
data_get($payload, 'id') !== null || data_get($payload, 'data.id') !== null || data_get($payload, 'message') !== null || data_get($payload, 'status') !== null,
|
||||
$uri.' should keep an identifier, data wrapper, or explicit status/message contract.'
|
||||
$uri . ' should keep an identifier, data wrapper, or explicit status/message contract.'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user