NAME
WebService::Mattermost::TestHelper - Helper functions for the library's test suite.
VERSION
version 0.23
DESCRIPTION
Exports subroutines used by the library's test suite.
SYNPOSIS
Test files should import the helper as follows:
# Exported functions are listed in METHODS
use WebService::Mattermost::TestHelper qw(
webservice_mattermost
...
);
my $mattermost = webservice_mattermost();
METHODS
client_arguments()
Basic arguments required for WebService::Mattermost.
response()
A dummy Mojo::Message::Response.
webservice_mattermost()
Creates a WebService::Mattermost object with some defaults.
user_resource_expects_login()
Stubs the user resource's "login" method with a successful response. This can be used to fake a successful login call.
AUTHOR
Mike Jones <mike@netsplit.org.uk>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2020 by Mike Jones.
This is free software, licensed under:
The MIT (X11) License