sub run_tests {
+my $schema = shift;
plan tests => 12;
# first page
-my $it = DBICTest->class("CD")->search(
+my $it = $schema->resultset("CD")->search(
{},
{ order_by => 'title',
rows => 3,
is( $it->next, undef, "next past end of page ok" );
# second page, testing with array
-my @page2 = DBICTest->class("CD")->search(
+my @page2 = $schema->resultset("CD")->search(
{},
{ order_by => 'title',
rows => 3,
is( $page2[0]->title, "Generic Manufactured Singles", "second page first title ok" );
# page a standard resultset
-$it = DBICTest->class("CD")->search(
+$it = $schema->resultset("CD")->search(
{},
{ order_by => 'title',
rows => 3 }
is( $page->next->title, "Generic Manufactured Singles", "second page of standard resultset ok" );
# test software-based limit paging
-$it = DBICTest->class("CD")->search(
+$it = $schema->resultset("CD")->search(
{},
{ order_by => 'title',
rows => 3,