Commit | Line | Data |
0567538f |
1 | sub run_tests { |
1edaf6fe |
2 | my $schema = shift; |
0567538f |
3 | |
716b3d29 |
4 | plan tests => 4; |
5 | $artist = DBICTest::Artist->find(1); |
6 | ok($artist->find_related('twokeys', {cd => 1}), "find multiple pks using relationships + args"); |
f9db5527 |
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"); |
9bbd8963 |
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'); |
1f6715ab |
10 | |
0567538f |
11 | } |
12 | |
13 | 1; |