The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Test::Mock::MongoDB::Database - mock module for MongoDB::Database class.

SYNOPSIS

You can get test mock object like so:

use Test::Mock::MongoDB qw( any );

my $mock         = Test::Mock::MongoDB->new;
my $m_database   = $mock->get_database;

DESCRIPTION

Current module mocks MongoDB::Database class.

METHODS

init()

By default mocks method get_collection(). Or skips this method if skip_init passed as true.

AUTHOR

cono <cono@cpan.org>

COPYRIGHT

Copyright 2014 - cono

LICENSE

Artistic v2.0

SEE ALSO

Test::Mock::MongoDB