Fix two bugs with importing product data.
Begin to build code for adding and editing products.
This commit is contained in:
parent
12fbd6a65c
commit
e562a45b10
2 changed files with 22 additions and 3 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue