X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=blobdiff_plain;f=t%2Fprefetch%2Fmanual.t;h=9e6ea91f0c1e355f41474491cd61d80af4d0da86;hp=7a2224521659dbe29168763cfed991813555aa10;hb=742280c7076fd54993896f070e86d84c4e7dd585;hpb=e327f12657df75fbc8d771b4b8d4495cf1dcbd79 diff --git a/t/prefetch/manual.t b/t/prefetch/manual.t index 7a22245..9e6ea91 100644 --- a/t/prefetch/manual.t +++ b/t/prefetch/manual.t @@ -8,6 +8,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, @@ -23,22 +35,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 here, bug in MC ],