Fix two bugs with importing product data.

Begin to build code for adding and editing products.
This commit is contained in:
Colin Kuskie 2008-05-27 04:01:41 +00:00
parent 12fbd6a65c
commit e562a45b10
2 changed files with 22 additions and 3 deletions

View file

@ -24,6 +24,7 @@ use Data::Dumper;
use WebGUI::Test; # Must use this before any other WebGUI modules
use WebGUI::Session;
use WebGUI::Text;
use WebGUI::Asset::Sku::Product;
#----------------------------------------------------------------------------
# Init
@ -53,6 +54,8 @@ SKIP: {
#
#######################################################################
my $importNode = WebGUI::Asset::Sku::Product->getProductImportNode($session);
eval { WebGUI::Shop::Products::importProducts($session); };
$e = Exception::Class->caught();
isa_ok($e, 'WebGUI::Error::InvalidParam', 'importProducts: error handling for an undefined path to file');