From 3ccf71ae0b243a667ded69817bad9f78d57bbbe0 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 3 Jun 2010 16:12:14 -0700 Subject: [PATCH] Better test cleanups. Hopefully, this fixes the RemoveOldCarts activity. --- t/Shop/PayDriver/Ogone.t | 1 + t/Shop/ShipDriver/FlatRate.t | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/t/Shop/PayDriver/Ogone.t b/t/Shop/PayDriver/Ogone.t index 8b0749155..ce68f5459 100644 --- a/t/Shop/PayDriver/Ogone.t +++ b/t/Shop/PayDriver/Ogone.t @@ -353,6 +353,7 @@ isnt( ####################################################################### my $cart = $driver->getCart; +WebGUI::Test->addToCleanup($cart); isa_ok ($cart, 'WebGUI::Shop::Cart', 'getCart returns an instantiated WebGUI::Shop::Cart object'); ####################################################################### diff --git a/t/Shop/ShipDriver/FlatRate.t b/t/Shop/ShipDriver/FlatRate.t index d8202d48b..d5d4a94d1 100644 --- a/t/Shop/ShipDriver/FlatRate.t +++ b/t/Shop/ShipDriver/FlatRate.t @@ -263,7 +263,6 @@ my $car = WebGUI::Asset->getImportNode($session)->addChild({ title => 'Automobiles', isShippingRequired => 1, }); -WebGUI::Test->addToCleanup($car); my $crappyCar = $car->setCollateral('variantsJSON', 'variantId', 'new', {