X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class-ResultSource-MultipleTableInheritance.git;a=blobdiff_plain;f=t%2F03insert.t;h=add074ee1ecc5263fa2231a1e743b4d5ca2cfd30;hp=b82ecbc3c5703510676d2cd5d62f962eb925bef5;hb=4eaa25b5cb5580b2fc2c94b30e977b83e08bd0e6;hpb=32098147b1ca9f76579541b0dd5e5df03e637162 diff --git a/t/03insert.t b/t/03insert.t index b82ecbc..add074e 100644 --- a/t/03insert.t +++ b/t/03insert.t @@ -3,12 +3,12 @@ use warnings; use lib 't/lib'; use Test::More qw(no_plan); use Test::Exception; -use Devel::Dwarn; +use CafeInsertion; BEGIN { - use_ok 'Cafe'; $ENV{DBIC_TRACE} = 0; } + my ( $dsn, $user, $pass ) = @ENV{ map {"DBICTEST_PG_${_}"} qw/DSN USER PASS/ }; plan skip_all => <<'EOM' unless $dsn && $user; @@ -16,8 +16,7 @@ Set $ENV{DBICTEST_PG_DSN}, _USER and _PASS to run this test ( NOTE: This test drops and creates some tables.') EOM -my $schema = Cafe->connect( $dsn, $user, $pass ); -$schema->storage->dbh->{Warn} = 0; +my $schema = CafeInsertion->connect( $dsn, $user, $pass ); $schema->storage->ensure_connected; $schema->storage->_use_insert_returning(0);