X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FTrack.pm;h=10d49f7b41e5416b474f2a48e172bd4c7cd324c6;hb=c200d949;hp=c43591a2be994b5bb679cfaf5a546603c86dc3f5;hpb=21621fe4565697ead298e6829425dc0e9e5ba816;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Schema/Track.pm b/t/lib/DBICTest/Schema/Track.pm index c43591a..10d49f7 100644 --- a/t/lib/DBICTest/Schema/Track.pm +++ b/t/lib/DBICTest/Schema/Track.pm @@ -116,6 +116,20 @@ __PACKAGE__->has_many ( } ); +__PACKAGE__->has_many ( + deliberately_broken_all_cd_tracks => __PACKAGE__, + sub { + # 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}.cd" => "$args->{self_alias}.cd" + }; + } +); + our $hook_cb; sub sqlt_deploy_hook {