Merge 'trunk' into 'DBIx-Class-current'
[dbsrgits/DBIx-Class-Historic.git] / t / run / 05multipk.tl
CommitLineData
0567538f 1sub run_tests {
1edaf6fe 2my $schema = shift;
0567538f 3
716b3d29 4plan tests => 4;
5$artist = DBICTest::Artist->find(1);
6ok($artist->find_related('twokeys', {cd => 1}), "find multiple pks using relationships + args");
f9db5527 7ok($schema->resultset("FourKeys")->find(1,2,3,4), "find multiple pks without hash");
8ok($schema->resultset("FourKeys")->find(5,4,3,6), "find multiple pks without hash");
9bbd8963 9is($schema->resultset("FourKeys")->find(1,2,3,4)->ID, 'DBICTest::FourKeys|fourkeys|bar=2|foo=1|goodbye=4|hello=3', 'unique object id ok for multiple pks');
1f6715ab 10
0567538f 11}
12
131;