use lib qw(t/lib);
use DBICTest;
-my $schema = DBICTest::init_schema();
+my $schema = DBICTest->init_schema();
-plan tests => 12;
+plan tests => 13;
# first page
my $it = $schema->resultset("CD")->search(
is( $it->next->title, "Generic Manufactured Singles", "software iterator->next ok" );
+# test paging with chained searches
+$it = $schema->resultset("CD")->search(
+ {},
+ { rows => 2,
+ page => 2 }
+)->search( undef, { order_by => 'title' } );
+
+is( $it->count, 2, "chained searches paging ok" );