tests: Add ajax request helper to module test case
This is a bit crude, but serves the purpose for now. To emulate an AJAX
request we set the Content-Type header to application/json, and json
encode the params in the body of the request.
This is a bit crude, but serves the purpose for now. To emulate an AJAX
request we set the Content-Type header to application/json, and json
encode the params in the body of the request.