Created
April 28, 2011 08:35
-
-
Save EdwardIII/946018 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[edward@eddarch StockRoom]$ prove -l t/model_StockDB.t | |
t/model_StockDB.t .. 1/? $VAR1 = bless( { | |
'total_entries' => 0, | |
'current_page' => 1, | |
'entries_per_page' => 10 | |
}, 'Data::Page' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
use strict;
use warnings;
use Test::More;
BEGIN { use_ok 'StockRoom::Model::StockDB' }
my $schema = StockRoom::Model::StockDB->new;
my $parts = $schema->resultset('TblStock')->search(undef,
{
page => 1,
rows => 10,
}
);
use Data::Dumper::Concise;
warn Dumper($parts->pager);
diag("no. rows: " . $parts->pager->total_entries);
use Data::Dumper;
diag(Dumper($parts->pager));
while(my $part = $parts->next){
diag(Dumper($part->vendorpartno));
}
done_testing();