Add extra test blob type
[dbsrgits/DBIx-Class.git] / t / 26dumper.t
CommitLineData
2c0c56b7 1use strict;
2use Test::More;
2c0c56b7 3
4use Data::Dumper;
5$Data::Dumper::Sortkeys = 1;
6
7use lib qw(t/lib);
2c0c56b7 8use_ok('DBICTest');
2c0c56b7 9
a47e1233 10my $schema = DBICTest->init_schema();
c93ddd59 11my $rs = $schema->resultset('CD')->search({
12 'artist.name' => 'We Are Goth',
13 'liner_notes.notes' => 'Kill Yourself!',
14}, {
15 join => [ qw/artist liner_notes/ ],
16});
2c0c56b7 17
18Dumper($rs);
19
c93ddd59 20$rs = $schema->resultset('CD')->search({
21 'artist.name' => 'We Are Goth',
22 'liner_notes.notes' => 'Kill Yourself!',
23}, {
24 join => [ qw/artist liner_notes/ ],
25});
2c0c56b7 26
c93ddd59 27cmp_ok( $rs->count(), '==', 1, "Single record in after death with dumper");
2c0c56b7 28
dc4600b2 29done_testing;