makeRequest

Makes a request internally through the framework request engine.
(Either a route or an event must be passed in.)

This method is usually only called internally by visit, visitEvent, link, and press.

Arguments

Name Type Required Default Description
method string true The HTTP method to use for the request.
route string false The framework route to execute.
event string false The framework event to execute.
parameters struct false {} A struct of parameters to attach to the request. The parameters are attached to framework's collection.

Examples

it( "can make an request through the framework", function() {
    this.visit( "/login" )
        .makeRequest(
            method = "POST",
            route = "/sessions",
            parameters = {
                userId = 1
            }
        );
} );