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,
14 lines
175 B
JSON
14 lines
175 B
JSON
{
|
|
"success": true,
|
|
"errors": [],
|
|
"messages": [],
|
|
"result": {
|
|
"ipv4_cidrs": [
|
|
"199.27.128.0/21"
|
|
],
|
|
"ipv6_cidrs": [
|
|
"2400:cb00::/32"
|
|
]
|
|
}
|
|
}
|