DBIx-Class
view release on metacpan or search on metacpan
t/storage/on_connect_call.t view on Meta::CPAN
use strict;
use warnings;
no warnings qw/once redefine/;
use lib qw(t/lib);
use DBI;
use DBICTest;
use DBICTest::Schema;
use DBIx::Class::Storage::DBI;
# !!! do not replace this with done_testing - tests reside in the callbacks
# !!! number of calls is important
use Test::More tests => 17;
# !!!
use Test::Warn;
my $schema = DBICTest::Schema->clone;
{
*DBIx::Class::Storage::DBI::connect_call_foo = sub {
isa_ok $_[0], 'DBIx::Class::Storage::DBI',
t/storage/on_connect_do.t view on Meta::CPAN
use strict;
use warnings;
# !!! do not replace this with done_testing - tests reside in the callbacks
# !!! number of calls is important
use Test::More tests => 13;
# !!!
use Test::Warn;
use Test::Exception;
use lib qw(t/lib);
use DBICTest;
require DBI;
( run in 0.293 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )