a2380856fb0031786dbc2c669d22c824f8415c62
[dbsrgits/DBIx-Class.git] / t / 26dumper.t
1 use strict;
2 use Test::More;
3
4 use Data::Dumper;
5 $Data::Dumper::Sortkeys = 1;
6
7 use lib qw(t/lib);
8 use_ok('DBICTest');
9
10 my $schema = DBICTest->init_schema();
11 my $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 });
17
18 Dumper($rs);
19
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 });
26
27 cmp_ok( $rs->count(), '==', 1, "Single record in after death with dumper");
28
29 done_testing;