Bug 20287: (follow-up) Test exception DuplicateID for Koha::Patron->store
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 12 Jul 2018 19:34:06 +0000 (16:34 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 18 Jul 2018 15:49:58 +0000 (15:49 +0000)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

t/db_dependent/Koha/Patrons.t

index 960b55c..243f817 100644 (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;