Add a test to make sure that update does not erase values that it is not given.
This commit is contained in:
parent
d4fb48f77d
commit
4ee2e59f1d
1 changed files with 2 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ my $session = WebGUI::Test->session;
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
# Tests
|
# Tests
|
||||||
|
|
||||||
plan tests => 66; # Increment this number for each test you create
|
plan tests => 67; # Increment this number for each test you create
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
# put your tests here
|
# put your tests here
|
||||||
|
|
@ -111,6 +111,7 @@ is($transaction->get("isSuccessful"), 1,"update and get isSuccessful");
|
||||||
is($transaction->get("transactionCode"), 'yyy',"update and get transaction code");
|
is($transaction->get("transactionCode"), 'yyy',"update and get transaction code");
|
||||||
is($transaction->get("statusCode"), 'jd31',"update and get status code");
|
is($transaction->get("statusCode"), 'jd31',"update and get status code");
|
||||||
is($transaction->get("statusMessage"), 'was a success',"update and get status message");
|
is($transaction->get("statusMessage"), 'was a success',"update and get status message");
|
||||||
|
is($transaction->get('taxes'), 7, 'update does not modify things it was not sent');
|
||||||
|
|
||||||
# make sure new() works
|
# make sure new() works
|
||||||
my $tcopy = WebGUI::Shop::Transaction->new($session, $transaction->getId);
|
my $tcopy = WebGUI::Shop::Transaction->new($session, $transaction->getId);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue