X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2F22-deflate_order.t;h=a54eaf70db99a82bca84accaf0b49361b2e38bf2;hb=8b16ef4e820ac2e747bbb639614bd9405c6b735c;hp=1de3f871a1d7909fc3a64b85cda4819fe2d6fc5e;hpb=68de943862f06cabd397d2e74d12cd9cdc999779;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/22-deflate_order.t b/t/cdbi/22-deflate_order.t index 1de3f87..a54eaf7 100644 --- a/t/cdbi/22-deflate_order.t +++ b/t/cdbi/22-deflate_order.t @@ -1,19 +1,14 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } +use DBIx::Class::Optional::Dependencies -skip_all_without => qw( cdbicompat test_rdbms_mysql Time::Piece::MySQL>=0 ); + $| = 1; +use warnings; use strict; use Test::More; -eval "use DBIx::Class::CDBICompat; use Time::Piece::MySQL;"; -if ($@) { - plan (skip_all => "Time::Piece::MySQL, Class::Trigger and DBIx::ContextualFetch required: $@"); -} - -plan skip_all => 'Set $ENV{DBICTEST_MYSQL_DSN}, _USER and _PASS to run this test' - unless ($ENV{DBICTEST_MYSQL_DSN} && $ENV{DBICTEST_MYSQL_USER}); - -plan tests => 3; - use lib 't/cdbi/testlib'; + use_ok ('Log'); package main; @@ -27,3 +22,4 @@ $log->update; ok eval { $log->datetime_stamp }, "Have datetime after update"; diag $@ if $@; +done_testing;