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,
19 lines
454 B
JSON
19 lines
454 B
JSON
{
|
|
"success": true,
|
|
"errors": [],
|
|
"messages": [],
|
|
"result": {
|
|
"id": "7c5dae5552338874e5053f2534d2767a",
|
|
"email": "user@example.com",
|
|
"first_name": "John",
|
|
"last_name": "Appleseed",
|
|
"username": "cfuser12345",
|
|
"telephone": "+1 123-123-1234",
|
|
"country": "US",
|
|
"zipcode": "12345",
|
|
"created_on": "2014-01-01T05:20:00Z",
|
|
"modified_on": "2014-01-01T05:20:00Z",
|
|
"two_factor_authentication_enabled": false
|
|
}
|
|
}
|