[x] I've checked that all new and existing tests pass
[x] I've updated the documentation if necessary
[x] I've added an entry in the CHANGELOG to credit myself
Description
I've added a matcher called hasFormBody that tests whether the NSURLRequest content-type is application/x-www-form-urlencoded and body contains query parameters.
Motivation and Context
In POST request with application/x-www-form-urlencoded, parameters are handled in httpBody.
For that reason, containsQueryParams function is useless for this situation.
Also for the same reason as #265, I need a new matcher that takes query items from httpBody and matches with expected pairs.
Checklist
Description
I've added a matcher called
hasFormBody
that tests whether theNSURLRequest
content-type isapplication/x-www-form-urlencoded
and body contains query parameters.Motivation and Context
In POST request with
application/x-www-form-urlencoded
, parameters are handled in httpBody. For that reason,containsQueryParams
function is useless for this situation. Also for the same reason as #265, I need a new matcher that takes query items from httpBody and matches with expected pairs.