Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assert JSON structure/schema in Unit/Integration test #6698

Open
blueblakk opened this issue Oct 5, 2023 · 1 comment
Open

Assert JSON structure/schema in Unit/Integration test #6698

blueblakk opened this issue Oct 5, 2023 · 1 comment

Comments

@blueblakk
Copy link

Is it possible to assert JSON structure/schema in unit/integration tests for controllers?

@blueblakk blueblakk changed the title Assert JSON structure in Unit/Integration test Assert JSON structure/schema in Unit/Integration test Oct 5, 2023
@Naktibalda
Copy link
Member

Do you mean that you want similar functionality to seeResponseContainsJson and seeResponseMatchesJsonType without using REST module or making request?

You would have to implement your own helper methods, but you can reuse constraints from codeception/module-rest if you like their behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants