diff --git a/t/Asset/Sku/EMSRibbon.t b/t/Asset/Sku/EMSRibbon.t index 761703dff..fad5ea184 100644 --- a/t/Asset/Sku/EMSRibbon.t +++ b/t/Asset/Sku/EMSRibbon.t @@ -50,6 +50,7 @@ $mech->submit_form_ok({ }); my $cart = WebGUI::Shop::Cart->newBySession( $mech->session ); +WebGUI::Test->addToCleanup($cart); ok( $cart->getItemsByAssetId([ $ribbon->getId ])->[0]->getId, $ribbon->getId ); diff --git a/t/Asset/Sku/EMSTicket.t b/t/Asset/Sku/EMSTicket.t index cd5fed148..69426215f 100644 --- a/t/Asset/Sku/EMSTicket.t +++ b/t/Asset/Sku/EMSTicket.t @@ -50,6 +50,7 @@ $mech->submit_form_ok({ }); my $cart = WebGUI::Shop::Cart->newBySession( $mech->session ); +WebGUI::Test->addToCleanup($cart); ok( $cart->getItemsByAssetId([ $ticket->getId ])->[0]->getId, $ticket->getId ); diff --git a/t/Asset/Sku/EMSToken.t b/t/Asset/Sku/EMSToken.t index bfa0655b0..653cb58db 100644 --- a/t/Asset/Sku/EMSToken.t +++ b/t/Asset/Sku/EMSToken.t @@ -50,6 +50,7 @@ $mech->submit_form_ok({ }); my $cart = WebGUI::Shop::Cart->newBySession( $mech->session ); +WebGUI::Test->addToCleanup($cart); ok( $cart->getItemsByAssetId([ $token->getId ])->[0]->getId, $token->getId ); diff --git a/t/Asset/Sku/Product.t b/t/Asset/Sku/Product.t index 8968e1f60..e7f39d0d0 100644 --- a/t/Asset/Sku/Product.t +++ b/t/Asset/Sku/Product.t @@ -212,6 +212,8 @@ $mech->submit_form_ok({ }, }, 'add viewProduct and go back' ); +WebGUI::Test->addToCleanup(WebGUI::Shop::Cart->newBySession($mech->session)); + $product = $product->cloneFromDb; cmp_deeply( $product->getAllCollateral( 'accessoryJSON' ), @@ -246,6 +248,7 @@ $mech->submit_form_ok({ proceed => 0, }, }, 'add viewProduct and go back' ); +WebGUI::Test->addToCleanup(WebGUI::Shop::Cart->newBySession($mech->session)); $product = $product->cloneFromDb; cmp_deeply( @@ -281,6 +284,7 @@ $mech->submit_form_ok({ proceed => 0, }, }, 'add one more new benefit' ); +WebGUI::Test->addToCleanup(WebGUI::Shop::Cart->newBySession($mech->session)); $product = $product->cloneFromDb; cmp_deeply( @@ -338,6 +342,7 @@ $mech->submit_form_ok({ proceed => 0, }, }, 'add one more new feature' ); +WebGUI::Test->addToCleanup(WebGUI::Shop::Cart->newBySession($mech->session)); $product = $product->cloneFromDb; cmp_deeply( @@ -401,6 +406,7 @@ $mech->submit_form_ok({ proceed => 0, }, }, 'add one more new feature' ); +WebGUI::Test->addToCleanup(WebGUI::Shop::Cart->newBySession($mech->session)); $product = $product->cloneFromDb; cmp_deeply( @@ -475,6 +481,7 @@ $mech->submit_form_ok({ proceed => 0, }, }, 'add one more new variant' ); +WebGUI::Test->addToCleanup(WebGUI::Shop::Cart->newBySession($mech->session)); $product = $product->cloneFromDb; cmp_deeply(