Merge the relationship resolution rework
[dbsrgits/DBIx-Class.git] / t / cdbi / 30-pager.t
index d26b4e8..eaac340 100644 (file)
@@ -1,13 +1,10 @@
+BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
+use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat';
+
 use strict;
-use Test::More;
+use warnings;
 
-BEGIN {
-  eval "use DBIx::Class::CDBICompat;";
-  if ($@) {
-    plan (skip_all => 'Class::Trigger and DBIx::ContextualFetch required');
-  }
-  plan tests => 6;
-}
+use Test::More;
 
 use lib 't/cdbi/testlib';
 use Film;
@@ -48,3 +45,5 @@ is( $it->next, undef, "next past end of page ok" );
 is( $pager->entries_on_this_page, 2, "entries on second page ok" );
 
 is( $it->next->title, "Film 4", "second page first title ok" );
+
+done_testing;