Closed drlibra closed 2 years ago
Please make pull request to https://github.com/Codeception/module-yii2/ to fix it.
No, the check only fails if response content is non empty and the data we captured is. So in your case, you are probably setting the response content in your code, which makes no sense for a delete method handler.
What are you trying to achieve?
Execute sendDELETE() method of REST module.
What do you get instead?
[Exception] No content was sent from Yii application
Details
composer show
)Suite is configured as stated here: https://codeception.com/for/yii#api-tests
As far as I understand there is a check that something have to be returned https://github.com/Codeception/base/blob/3.1/src/Codeception/Lib/Connector/Yii2.php#L363, but in case of
DELETE
method there is no any output, so this condition should not be applied.