X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fprefetch%2Ffalse_colvalues.t;h=5213e73afca9c2f44694f2bb5a25104172fdf841;hb=3d3e99db7a4feb8cc1d7523995a90f6c76e230ff;hp=4520bf4b0c9434684a861a91993fcfa0d92e952e;hpb=5e6d06f41642ba24ec94fd9eff7d373fefe24f76;p=dbsrgits%2FDBIx-Class.git diff --git a/t/prefetch/false_colvalues.t b/t/prefetch/false_colvalues.t index 4520bf4..5213e73 100644 --- a/t/prefetch/false_colvalues.t +++ b/t/prefetch/false_colvalues.t @@ -7,22 +7,12 @@ use Test::Deep; use lib qw(t/lib); use DBICTest; -my $schema = DBICTest->init_schema( - no_populate => 1, -); +my $schema = DBICTest->init_schema( no_populate => 1 ); $schema->resultset('CD')->create({ - cdid => 0, - artist => { - artistid => 0, - name => '', - rank => 0, - charfield => 0, - }, - title => '', - year => 0, - genreid => 0, - single_track => 0, + cdid => 0, title => '', year => 0, genreid => 0, single_track => 0, artist => { + artistid => 0, name => '', rank => 0, charfield => 0, + }, }); my $orig_debug = $schema->storage->debug; @@ -35,25 +25,13 @@ my $cd = $schema->resultset('CD')->search( {}, { prefetch => 'artist' })->next; cmp_deeply { $cd->get_columns }, - { - artist => 0, - cdid => 0, - genreid => 0, - single_track => 0, - title => '', - year => 0, - }, + { artist => 0, cdid => 0, genreid => 0, single_track => 0, title => '', year => 0 }, 'Expected CD columns present', ; cmp_deeply { $cd->artist->get_columns }, - { - artistid => 0, - charfield => 0, - name => "", - rank => 0, - }, + { artistid => 0, charfield => 0, name => "", rank => 0 }, 'Expected Artist columns present', ;