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', {