fix clean-up of Products in FlatRate test
This commit is contained in:
parent
9d45d764b3
commit
58d97badcd
1 changed files with 2 additions and 2 deletions
|
|
@ -249,7 +249,7 @@ undef $driver;
|
||||||
#
|
#
|
||||||
#######################################################################
|
#######################################################################
|
||||||
|
|
||||||
my $car = WebGUI::Asset->getImportNode($session)->addChild({
|
$car = WebGUI::Asset->getImportNode($session)->addChild({
|
||||||
className => 'WebGUI::Asset::Sku::Product',
|
className => 'WebGUI::Asset::Sku::Product',
|
||||||
title => 'Automobiles',
|
title => 'Automobiles',
|
||||||
isShippingRequired => 1,
|
isShippingRequired => 1,
|
||||||
|
|
@ -312,7 +312,7 @@ END {
|
||||||
if (defined $cart and ref $cart eq 'WebGUI::Shop::Cart') {
|
if (defined $cart and ref $cart eq 'WebGUI::Shop::Cart') {
|
||||||
$cart->delete;
|
$cart->delete;
|
||||||
}
|
}
|
||||||
if (defined $car and ref $car eq 'WebGUI::Asset:Sku::Product') {
|
if (defined $car and (ref($car) eq 'WebGUI::Asset::Sku::Product')) {
|
||||||
$car->purge;
|
$car->purge;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue