From bbbb88f0350d5729aa33161b49ca22d88f5acb57 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 2 Mar 2022 11:42:51 -0300 Subject: [PATCH] Bug 29857: (follow-up) Fix t/db_dependent/Koha/Patron/Modifications.t Signed-off-by: Tomas Cohen Arazi Signed-off-by: Fridolin Somers --- t/db_dependent/Koha/Patron/Modifications.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/Koha/Patron/Modifications.t b/t/db_dependent/Koha/Patron/Modifications.t index c5f2d6293a..4e03a246bd 100755 --- a/t/db_dependent/Koha/Patron/Modifications.t +++ b/t/db_dependent/Koha/Patron/Modifications.t @@ -77,8 +77,8 @@ subtest 'new() tests' => sub { } 'Koha::Exceptions::Patron::Modification::DuplicateVerificationToken', 'Attempting to add a duplicate verification raises the correct exception'; - is( $@, - 'Duplicate verification token 1234567890', + like( "$@", + qr/Duplicate verification token 1234567890/, 'Exception carries the right message' ); @@ -132,7 +132,7 @@ subtest 'store( extended_attributes ) tests' => sub { 'Koha::Exceptions::Patron::Modification::InvalidData', 'Trying to store invalid JSON in extended_attributes field raises exception'; - is( $@, 'The passed extended_attributes is not valid JSON' ); + like( "$@", qr/The passed extended_attributes is not valid JSON/ ); $schema->storage->txn_rollback; }; -- 2.20.1