Test::Mock::MongoDB::Collection - mock module for MongoDB::Collection class.
You can get test mock object like so:
use Test::Mock::MongoDB qw( any ); my $mock = Test::Mock::MongoDB->new; my $m_collection = $mock->get_collection;
Current module mocks MongoDB::Collection class.
By default mocks methods get_collection() and find(). Or skips this method if skip_init passed as true.
get_collection()
find()
skip_init
cono <cono@cpan.org>
Copyright 2014 - cono
Artistic v2.0
Test::Mock::MongoDB
To install Test::Mock::MongoDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Mock::MongoDB
CPAN shell
perl -MCPAN -e shell install Test::Mock::MongoDB
For more information on module installation, please visit the detailed CPAN module installation guide.