X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=blobdiff_plain;f=t%2Fresultset%2Finflate_result_api.t;h=d97e475717b4a92d99a57d76a7911fd169ea2e29;hp=e57492b26017803bff69cead7bf9884c81e2d4d8;hb=742280c7076fd54993896f070e86d84c4e7dd585;hpb=e327f12657df75fbc8d771b4b8d4495cf1dcbd79 diff --git a/t/resultset/inflate_result_api.t b/t/resultset/inflate_result_api.t index e57492b..d97e475 100644 --- a/t/resultset/inflate_result_api.t +++ b/t/resultset/inflate_result_api.t @@ -7,6 +7,18 @@ use DBICTest; my $schema = DBICTest->init_schema(no_populate => 1); +$schema->resultset('Artist')->create({ name => 'JMJ', cds => [{ + title => 'Magnetic Fields', + year => 1981, + genre => { name => 'electro' }, + tracks => [ + { title => 'm1' }, + { title => 'm2' }, + { title => 'm3' }, + { title => 'm4' }, + ], +} ] }); + $schema->resultset('CD')->create({ title => 'Equinoxe', year => 1978, @@ -22,22 +34,7 @@ $schema->resultset('CD')->create({ cd => { title => 'Oxygene', year => 1976, - artist => { - name => 'JMJ', - cds => [ - { - title => 'Magnetic Fields', - year => 1981, - genre => { name => 'electro' }, - tracks => [ - { title => 'm1' }, - { title => 'm2' }, - { title => 'm3' }, - { title => 'm4' }, - ], - }, - ], - }, + artist => { name => 'JMJ' }, tracks => [ { title => 'o2', position => 2}, # the position should not be needed here, bug in MC ],