Skip tests if DateTime is not installed.
[dbsrgits/DBIx-Class.git] / t / cdbi-sweet-t / 08pager.t
index e105932..07166e6 100644 (file)
@@ -16,9 +16,12 @@ BEGIN {
 use lib 't/lib';
 
 use_ok('DBICTest');
-DBICTest::init_schema();
 
-DBICTest::CD->load_components(qw/CDBICompat::Pager/);
+DBICTest::Schema::CD->load_components(qw/CDBICompat CDBICompat::Pager/);
+
+my $schema = DBICTest->init_schema(compose_connection => 1);
+
+DBICTest::CD->result_source_instance->schema->storage($schema->storage);
 
 my ( $pager, $it ) = DBICTest::CD->page(
     {},