Merge the relationship resolution rework
[dbsrgits/DBIx-Class.git] / t / cdbi / set_to_undef.t
index 2316bf8..149be2c 100644 (file)
@@ -1,15 +1,12 @@
+BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
+use DBIx::Class::Optional::Dependencies -skip_all_without => qw( ic_dt cdbicompat );
+
 use strict;
+use warnings;
+
 use Test::More;
 use lib 't/cdbi/testlib';
 
-BEGIN {
-  eval "use DBIx::Class::CDBICompat;use DateTime 0.55;";
-  plan skip_all => "DateTime 0.55, Class::Trigger and DBIx::ContextualFetch required: $@"
-    if $@;
-  plan tests => 2;
-}
-
-
 # Don't use Test::NoWarnings because of an unrelated DBD::SQLite warning.
 my @warnings;
 local $SIG{__WARN__} = sub {
@@ -30,3 +27,5 @@ is $thing->get( "this" ), undef, 'undef set';
 $thing->discard_changes;
 
 is @warnings, 0, 'no warnings';
+
+done_testing;