This PR moves the JSON API responses used in the tests to fixture files within the tests folder. This allows reuse and the ability to lint/validate these fixtures if required - although not covered in this PR. I've added TestCase::getPsr7StreamForFixture and TestCase::getPsr7JsonResponseForFixture to reduce code duplication and enable some assertions around the expected fixures/responses. Thanks,
29 lines
605 B
JSON
29 lines
605 B
JSON
{
|
|
"success": true,
|
|
"errors": [],
|
|
"messages": [],
|
|
"result": [
|
|
{
|
|
"id": "372e67954025e0ba6aaa6d586b9e0b59",
|
|
"type": "A",
|
|
"name": "example.com",
|
|
"content": "1.2.3.4",
|
|
"proxiable": true,
|
|
"proxied": false,
|
|
"ttl": 120,
|
|
"locked": false,
|
|
"zone_id": "023e105f4ecef8ad9ca31a8372d0c353",
|
|
"zone_name": "example.com",
|
|
"created_on": "2014-01-01T05:20:00.12345Z",
|
|
"modified_on": "2014-01-01T05:20:00.12345Z",
|
|
"data": {}
|
|
}
|
|
],
|
|
"result_info": {
|
|
"page": 1,
|
|
"per_page": 20,
|
|
"count": 1,
|
|
"total_count": 2000
|
|
}
|
|
}
|