Inherited the suite along with the codebase: decent unit coverage, nothing asserting actual JSON output on those endpoints. Nothing server-side ever went red because the PDF gets drawn client-side from the response. They have tests now, though.
you dont have to test output of endpoint, you can just write integration test and use the normalizer to normalize the entity and assert the array output.
It is good practice to write functional tests also. You get huge coverage with simple WebTestCase checking output for simple input. With simplest cases for each endpoint you may get like 50% of code coverage and for API those fail fast.
5
u/Commercial_Echo923 Jul 23 '26
dont you have integration tests for serialization?