imbo / behat-api-extension

API extension for Behat, used to ease testing of JSON-based APIs
MIT License
107 stars 42 forks source link

Add step to assert that the response body is empty #109

Closed christeredvartsen closed 2 years ago

christeredvartsen commented 2 years ago

This PR adds a new step that can be used to verify that the response body is empty:

Then the response body is empty

Resolves #105

christeredvartsen commented 2 years ago

@milkovsky Would the step introduced in this PR solve your issue (#105)?

Thinking of perhaps adding a negative version as well:

Then the response body is not empty

What do you think?

milkovsky commented 2 years ago

@christeredvartsen this PR does not solve my issue. Answered there.

christeredvartsen commented 2 years ago

Merging this anyways as the feature might be usable.