From: David Kamholz Date: Mon, 10 Jul 2006 00:07:13 +0000 (+0000) Subject: fix up test X-Git-Tag: v0.07002~75^2~34 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=48d2be642ebad6854308b2938811ebcb84aafdd8;p=dbsrgits%2FDBIx-Class.git fix up test --- diff --git a/t/76joins.t b/t/76joins.t index 76e74fa..1e39dfb 100644 --- a/t/76joins.t +++ b/t/76joins.t @@ -304,8 +304,10 @@ $tree_like = $schema->resultset('TreeLike')->search({'me.id' => 1}); $tree_like = $tree_like->search_related('children')->search_related('children')->search_related('children')->first; is($tree_like->name, 'quux', 'Tree search_related ok'); -$tree_like = $schema->resultset('TreeLike')->search({ 'children.id' => 2 }); -$tree_like = $tree_like->search_related('children', undef, { prefetch => { children => 'children' } })->first; +$tree_like = $schema->resultset('TreeLike')->search_related('children', + { 'children.id' => 2, 'children_2.id' => 3 }, + { prefetch => { children => 'children' } } + )->first; is($tree_like->children->first->children->first->name, 'quux', 'Tree search_related with prefetch ok'); $tree_like = $schema->resultset('TreeLike')->search(