Update test for exception handling.
This commit is contained in:
parent
0a0b6557e2
commit
44c6048da4
1 changed files with 2 additions and 2 deletions
|
|
@ -375,8 +375,8 @@ SKIP: {
|
|||
$shelf->purge;
|
||||
undef $shelf;
|
||||
|
||||
$record = WebGUI::Asset::Sku->newBySku($session, 'classical-records-1');
|
||||
is($record, undef, 'deleting a shelf deletes all products beneath it');
|
||||
$record = eval { WebGUI::Asset::Sku->newBySku($session, 'classical-records-1'); };
|
||||
ok(Exception::Class->caught(), 'deleting a shelf deletes all products beneath it');
|
||||
|
||||
#######################################################################
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue