WebService::Mattermost::TestHelper - Helper functions for the library's test suite.
version 0.24
Exports subroutines used by the library's test suite.
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();
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.
Mike Jones <mike@netsplit.org.uk>
This software is Copyright (c) 2020 by Mike Jones.
This is free software, licensed under:
The MIT (X11) License
To install WebService::Mattermost, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Mattermost
CPAN shell
perl -MCPAN -e shell install WebService::Mattermost
For more information on module installation, please visit the detailed CPAN module installation guide.