X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2F22-deflate_order.t;h=d4e9935280718922eb4ec786270c983374ffc287;hb=4a233f3019d2baa4bf2abee0c873c74d5cdf3a11;hp=3d53245aade524fdc90626b03b338ce22dce5635;hpb=d755000b7aca1430c279859de8be5ebaf0e3b767;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/22-deflate_order.t b/t/cdbi/22-deflate_order.t index 3d53245..d4e9935 100644 --- a/t/cdbi/22-deflate_order.t +++ b/t/cdbi/22-deflate_order.t @@ -1,23 +1,15 @@ $| = 1; +use warnings; use strict; use Test::More; -eval "use DBIx::Class::CDBICompat;"; -if ($@) { - plan (skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@"); - next; -} - -plan skip_all => 'Set $ENV{DBICTEST_MYSQL_DSN}, _USER and _PASS to run this test' - unless ($ENV{DBICTEST_MYSQL_DSN} && $ENV{DBICTEST_MYSQL_USER}); - -eval { require Time::Piece::MySQL }; -plan skip_all => "Need Time::Piece::MySQL for this test" if $@; +use lib 't/cdbi/testlib'; +use DBIC::Test::SQLite (); # this will issue the necessary SKIPs on missing reqs -plan tests => 3; +eval { require Time::Piece::MySQL } + or plan skip_all => 'Time::Piece::MySQL required for this test'; -use lib 't/cdbi/testlib'; use_ok ('Log'); package main; @@ -31,3 +23,4 @@ $log->update; ok eval { $log->datetime_stamp }, "Have datetime after update"; diag $@ if $@; +done_testing;