X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FCD.pm;h=e7cccca1ee689893a9d26d41935f43168bfc7aa5;hb=a3a17a151f4001019b64ef83d7e304bb7f0291af;hp=45fdf6fe9e06f9cbb8b4bbba372384dbba9095bf;hpb=1daf13637feee7722e7bbaddb608920c9f8fd1df;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Schema/CD.pm b/t/lib/DBICTest/Schema/CD.pm index 45fdf6f..e7cccca 100644 --- a/t/lib/DBICTest/Schema/CD.pm +++ b/t/lib/DBICTest/Schema/CD.pm @@ -4,7 +4,8 @@ package # hide from PAUSE use warnings; use strict; -use base qw/DBICTest::BaseResult/; +use base 'DBICTest::BaseResult'; +use DBICTest::Util 'check_customcond_args'; # this tests table name as scalar ref # DO NOT REMOVE THE \ @@ -118,7 +119,11 @@ __PACKAGE__->might_have( 'last_track', 'DBICTest::Schema::Track', sub { - my $args = shift; + # This is for test purposes only. A regular user does not + # need to sanity check the passed-in arguments, this is what + # the tests are for :) + my $args = &check_customcond_args; + return ( { "$args->{foreign_alias}.trackid" => { '=' =>