X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F100populate.t;h=e179931281e6933ebc686671684d5486b5b5cade;hb=78aef8c46882755aeac9d178f4dbec3942ec284b;hp=2e30a1739d52c506ea218583e1f63dd760efd4bb;hpb=8464d1a46a485fbecfb42f74b9b741cbc2534a78;p=dbsrgits%2FDBIx-Class.git diff --git a/t/100populate.t b/t/100populate.t index 2e30a17..e179931 100644 --- a/t/100populate.t +++ b/t/100populate.t @@ -296,4 +296,24 @@ for ( ok ($row, "Stringification test row '$_' properly inserted"); } +lives_ok { + $schema->resultset('TwoKeys')->populate([{ + artist => 1, + cd => 5, + fourkeys_to_twokeys => [{ + f_foo => 1, + f_bar => 1, + f_hello => 1, + f_goodbye => 1, + autopilot => 'a', + },{ + f_foo => 2, + f_bar => 2, + f_hello => 2, + f_goodbye => 2, + autopilot => 'b', + }] + }]) +} 'multicol-PK has_many populate works'; + done_testing;