X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frun%2F06relationship.tl;fp=t%2Frun%2F06relationship.tl;h=ab35be0fa9269a510015c03fba5da9bd436d83cc;hb=7411204b288b1df6416832707a8a6ce11e2ab3d8;hp=7141be83a2084584103ca67e1d6a48091de78464;hpb=70fe6d6e8840b4c73c5d2327d0d6c9f35719b354;p=dbsrgits%2FDBIx-Class.git diff --git a/t/run/06relationship.tl b/t/run/06relationship.tl index 7141be8..ab35be0 100644 --- a/t/run/06relationship.tl +++ b/t/run/06relationship.tl @@ -1,6 +1,6 @@ sub run_tests { -plan tests => 13; +plan tests => 14; # has_a test my $cd = DBICTest->class("CD")->find(4); @@ -105,6 +105,11 @@ eval { }; like($@, qr/join condition/, 'failed when creating a rel without join condition, ok'); +# many_to_many helper test +$cd = DBICTest->class("CD")->find(1); +my @producers = $cd->producers(); +is( $producers[0]->name, 'Matt S Trout', 'many_to_many ok' ); + } 1;