X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frelationship%2Fcore.t;h=de6afd7c727593ecca5ff18a50494c863bbda913;hb=2d9a96fd40eb4be24a9a254953e1e3cd8e20ea3a;hp=be8d7c91db878930294f3266ea5259c0df6a1a27;hpb=5b87fc0f74c6f7de9d4b544ef31104fac7b2a5a9;p=dbsrgits%2FDBIx-Class.git diff --git a/t/relationship/core.t b/t/relationship/core.t index be8d7c9..de6afd7 100644 --- a/t/relationship/core.t +++ b/t/relationship/core.t @@ -195,7 +195,8 @@ warnings_like { qr/\Qsearch( %condition ) is deprecated/ ], 'Warning properly bubbled from search()'; -$cd->set_producers([$schema->resultset('Producer')->all]); +# the undef-attr-arg at the end is deliberate: this is what FormFu does +$cd->set_producers([$schema->resultset('Producer')->all], undef); is( $cd->producers->count(), $prod_before_count+2, 'many_to_many set_$rel(\@objs) count ok' ); $cd->set_producers([$schema->resultset('Producer')->find(1)]);