Neither of these can fail now that we dep on 5.8.1 (missed in 55087b99)
[dbsrgits/DBIx-Class.git] / t / 26dumper.t
1 use strict;
2 use warnings;
3 use Test::More;
4
5 use Data::Dumper;
6 $Data::Dumper::Sortkeys = 1;
7
8 use lib qw(t/lib);
9 use_ok('DBICTest');
10
11 my $schema = DBICTest->init_schema();
12 my $rs = $schema->resultset('CD')->search({
13   'artist.name' => 'We Are Goth',
14   'liner_notes.notes' => 'Kill Yourself!',
15 }, {
16   join => [ qw/artist liner_notes/ ],
17 });
18
19 Dumper($rs);
20
21 $rs = $schema->resultset('CD')->search({
22   'artist.name' => 'We Are Goth',
23   'liner_notes.notes' => 'Kill Yourself!',
24 }, {
25   join => [ qw/artist liner_notes/ ],
26 });
27
28 cmp_ok( $rs->count(), '==', 1, "Single record in after death with dumper");
29
30 done_testing;