776a38241dbbc0a3c98b56fbe560fa0e69da828a
[dbsrgits/DBIx-Class.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|bar=2|foo=1|goodbye=4|hello=3', 'unique object id ok for multiple pks');
10
11 }
12
13 1;