Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 'reorganize_tests' into 'DBIx-Class-current'
r1656@moss (orig r1655): bluefeet | 2006-05-17 22:15:24 -0700 Delete basicrels tests. Modify run tests to use new syntax. Remove helperrels test wrappers.
- Loading branch information
Showing
34 changed files
with
333 additions
and
416 deletions.
There are no files selected for viewing
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
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
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
sub run_tests { | ||
my $schema = shift; | ||
use strict; | ||
use warnings; | ||
|
||
use Test::More; | ||
use lib qw(t/lib); | ||
use DBICTest; | ||
|
||
my $schema = DBICTest::init_schema(); | ||
|
||
plan tests => 4; | ||
$artist = DBICTest::Artist->find(1); | ||
|
||
my $artist = DBICTest::Artist->find(1); | ||
ok($artist->find_related('twokeys', {cd => 1}), "find multiple pks using relationships + args"); | ||
ok($schema->resultset("FourKeys")->find(1,2,3,4), "find multiple pks without hash"); | ||
ok($schema->resultset("FourKeys")->find(5,4,3,6), "find multiple pks without hash"); | ||
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'); | ||
|
||
} | ||
|
||
1; |
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
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
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
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
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
Oops, something went wrong.