Adjust test to match code. Only catch exceptions of WebGUI::Error type.
This commit is contained in:
parent
86be7f2abc
commit
70cc313e1e
1 changed files with 2 additions and 2 deletions
|
|
@ -206,7 +206,7 @@ $properties = $driver->get();
|
|||
$properties->{sourceCountry} = 'United States';
|
||||
$driver->update($properties);
|
||||
eval { $driver->calculate() };
|
||||
$e = Exception::Class->caught();
|
||||
$e = WebGUI::Error->caught();
|
||||
isa_ok($e, 'WebGUI::Error::InvalidParam', 'calculate throws an exception when no userId');
|
||||
cmp_deeply(
|
||||
$e,
|
||||
|
|
@ -346,7 +346,7 @@ $properties->{licenseNo} = $license;
|
|||
$properties->{sourceZip} = '97123';
|
||||
$properties->{sourceCountry} = 'United States';
|
||||
$properties->{shipService} = '03';
|
||||
$properties->{pickupCode} = '01';
|
||||
$properties->{pickupType} = '01';
|
||||
$driver->update($properties);
|
||||
|
||||
$driver->testMode(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue