Bug 20287: (follow-up) Test exception DuplicateID for Koha::Patron->store

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2018-07-12 16:34:06 -03:00 committed by Nick Clemens
parent c0e0768d57
commit cfb92e40d9
1 changed files with 1 additions and 1 deletions

View File

@ -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;