Merge 'trunk' into 'DBIx-Class-current'
[dbsrgits/DBIx-Class-Historic.git] / t / run / 05multipk.tl
1 sub run_tests {
2 my $schema = shift;
3
4 plan tests => 4;
5 $artist = DBICTest::Artist->find(1);
6 ok($artist->find_related('twokeys', {cd => 1}), "find multiple pks using relationships + args");
7 ok($schema->resultset("FourKeys")->find(1,2,3,4), "find multiple pks without hash");
8 ok($schema->resultset("FourKeys")->find(5,4,3,6), "find multiple pks without hash");
9 is($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');
10
11 }
12
13 1;