X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2F22-deflate_order.t;h=a54eaf70db99a82bca84accaf0b49361b2e38bf2;hb=c0329273268971824784f239f32c7246e68da9c5;hp=5267ae066369d00fcb3903445a6caa181f86ab7b;hpb=9381840da8471c9a17a0b641c99fd0b57178b839;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/cdbi/22-deflate_order.t b/t/cdbi/22-deflate_order.t index 5267ae0..a54eaf7 100644 --- a/t/cdbi/22-deflate_order.t +++ b/t/cdbi/22-deflate_order.t @@ -1,22 +1,15 @@ +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;"; -if ($@) { - plan (skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@"); - next; -} - -eval { require Time::Piece::MySQL }; -plan skip_all => "Need Time::Piece::MySQL for this test" if $@; - use lib 't/cdbi/testlib'; -eval { require 't/cdbi/testlib/Log.pm' }; -plan skip_all => "Need MySQL for this test" if $@; -plan tests => 2; +use_ok ('Log'); package main; @@ -29,3 +22,4 @@ $log->update; ok eval { $log->datetime_stamp }, "Have datetime after update"; diag $@ if $@; +done_testing;