From db3bf2fae2c117b13c16f4e040abeaa10e16be22 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 27 Aug 2008 02:05:57 +0000 Subject: [PATCH] fix random test failures in item test --- t/Macro/MiniCart.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/Macro/MiniCart.t b/t/Macro/MiniCart.t index b77be5594..6c08d4173 100644 --- a/t/Macro/MiniCart.t +++ b/t/Macro/MiniCart.t @@ -88,7 +88,7 @@ skip "Unable to load $macro", $numTests-1 unless $loaded; { totalPrice => '20', totalItems => '2', - items => [ + items => bag( { name => $donation->getConfiguredTitle(), quantity => 1, @@ -101,7 +101,7 @@ skip "Unable to load $macro", $numTests-1 unless $loaded; price => 10, url => $donation->getUrl('shop=cart;method=viewItem;itemId='.$item2->getId), }, - ], + ), }, 'Cart with two items works' ); @@ -114,7 +114,7 @@ skip "Unable to load $macro", $numTests-1 unless $loaded; { totalPrice => '100', totalItems => '10', - items => [ + items => bag( { name => $donation->getConfiguredTitle(), quantity => 1, @@ -127,7 +127,7 @@ skip "Unable to load $macro", $numTests-1 unless $loaded; price => 10, url => $donation->getUrl('shop=cart;method=viewItem;itemId='.$item2->getId), }, - ], + ), }, 'Cart with two items and multiple quantities works' );