Bug 20287: (follow-up) Test exception DuplicateID for Koha::Patron->store
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
c0e0768d57
commit
cfb92e40d9
|
|
@ -1440,7 +1440,7 @@ subtest '->store' => sub {
|
|||
throws_ok
|
||||
{ $patron_2->userid($patron_1->userid)->store; }
|
||||
'Koha::Exceptions::Object::DuplicateID',
|
||||
'AddMember raises an exception on invalid categorycode';
|
||||
'Koha::Patron->store raises an exception on duplicate ID';
|
||||
|
||||
$schema->storage->dbh->{PrintError} = $print_error;
|
||||
$schema->storage->txn_rollback;
|
||||
|
|
|
|||
Loading…
Reference in New Issue