You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I bought Phil's book today and must say it's a good read.
I'm currently writing Behat tests for my API and want to try testing a post with a payload. I have a scenario like this:
Given I have the payload:
"""
{"name": "foo_name"}
"""
When I request "POST /api/users"
Then I get a "200" response
When running the test, it seems the payload is not sent. Debugging learns that Input::get('name') in my store() function returns 422 Unprocessable Entity.
Other test, without payload, are running fine. Posting the same payload in Chrome's RestClient does work correctly.
Any ideas on what's going on here?
Thanks
The text was updated successfully, but these errors were encountered:
I bought Phil's book today and must say it's a good read.
I'm currently writing Behat tests for my API and want to try testing a post with a payload. I have a scenario like this:
When running the test, it seems the payload is not sent. Debugging learns that
Input::get('name')
in my store() function returns422 Unprocessable Entity
.Other test, without payload, are running fine. Posting the same payload in Chrome's RestClient does work correctly.
Any ideas on what's going on here?
Thanks
The text was updated successfully, but these errors were encountered: