6 my $it = DBICTest->class("CD")->search(
13 is( $it->pager->entries_on_this_page, 3, "entries_on_this_page ok" );
15 is( $it->pager->next_page, 2, "next_page ok" );
17 is( $it->count, 3, "count on paged rs ok" );
19 is( $it->next->title, "Caterwaulin' Blues", "iterator->next ok" );
24 is( $it->next, undef, "next past end of page ok" );
26 # second page, testing with array
27 my @page2 = DBICTest->class("CD")->search(
29 { order_by => 'title',
34 is( $page2[0]->title, "Generic Manufactured Singles", "second page first title ok" );
36 # page a standard resultset
37 $it = DBICTest->class("CD")->search(
39 { order_by => 'title',
42 my $page = $it->page(2);
44 is( $page->count, 2, "standard resultset paged rs count ok" );
46 is( $page->next->title, "Generic Manufactured Singles", "second page of standard resultset ok" );
48 # test software-based limit paging
49 $it = DBICTest->class("CD")->search(
51 { order_by => 'title',
56 is( $it->pager->entries_on_this_page, 2, "software entries_on_this_page ok" );
58 is( $it->pager->previous_page, 1, "software previous_page ok" );
60 is( $it->count, 2, "software count on paged rs ok" );
62 is( $it->next->title, "Generic Manufactured Singles", "software iterator->next ok" );