change name of method
[dbsrgits/DBIx-Class-Historic.git] / t / resultset / is_paged.t
CommitLineData
305ce558 1use strict;\r
2use warnings;\r
3\r
4use lib qw(t/lib);\r
5use Test::More;\r
6use Test::Exception;\r
7use DBICTest;\r
8\r
9my $schema = DBICTest->init_schema();\r
10\r
11my $tkfks = $schema->resultset('Artist');\r
12\r
8c0a1f31 13ok !$tkfks->is_paged, 'vanilla resultset is not paginated';\r
305ce558 14\r
15my $paginated = $tkfks->search(undef, { page => 5 });\r
8c0a1f31 16ok $paginated->is_paged, 'resultset is paginated now';\r
305ce558 17\r
18done_testing;\r
19\r