Eve::HttpResourceGraphTestBase - a base class for all Graph API HTTP resource classes.
package BogusHttpResourceTest; use parent qw(Eve::HttpResourceGraphTestBase); # put your HTTP resource tests here
Get a ready HTTP dispatcher object for your test case:
$self->set_dispatcher( Eve::PsgiStub->get_request( 'method' => $method_string, 'uri' => $uri_string, 'host' => $domain_strin, 'query' => $query_string, 'cookie' => $cookie_string));
Eve::HttpResourceGraphTestBase is the class that provides all required test cases for every Graph API HTTP resource class.
Returns an Eve::HttpDispatcher object ready for HTTP resource testing. To get a ready request object to be used as an argument a Eve::PsgiStub stub class can be used.
Eve::HttpDispatcher
Any Eve::HttpRequest object.
Eve::HttpRequest
Performs all tests for the GET functionality of a Graph API resource.
Performs all tests for the POST functionality of a Graph API resource.
Performs all tests for the DELETE functionality of a Graph API resource.
Performs all tests for specified data and request method.
Sets session parameters for the current test.
Adds gateway method mocking with provided data.
Checks the response of a resource and compares it to the one specified in the arguments.
Copyright 2010-2013 Sergey Konoplev, Igor Zinovyev.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Eve, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Eve
CPAN shell
perl -MCPAN -e shell install Eve
For more information on module installation, please visit the detailed CPAN module installation guide.