=Test for Data::Dumper::Sortkeys incompatibility (export DATA_DUMPER_TEST=1).
[dbsrgits/DBIx-Class.git] / t / cdbi-t / 18-has_a.t
index 84ee292..d2fe462 100644 (file)
@@ -2,8 +2,13 @@ use strict;
 use Test::More;
 
 BEGIN {
-       eval "use DBD::SQLite";
-       plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 41);
+  eval "use DBIx::Class::CDBICompat;";
+  if ($@) {
+    plan (skip_all => 'Class::Trigger and DBIx::ContextualFetch required');
+    next;
+  }
+  eval "use DBD::SQLite";
+  plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 41);
 }
 
 use lib 't/testlib';
@@ -140,7 +145,7 @@ SKIP: {
                YA::Film->add_relationship_type(has_a => "YA::HasA");
 
                package YA::HasA;
-               use base 'Class::DBI::Relationship::HasA';
+               #use base 'Class::DBI::Relationship::HasA';
 
                sub _inflator {
                        my $self  = shift;