Bug 29857: (follow-up) Fix t/db_dependent/Koha/Patron/Modifications.t

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Tomas Cohen Arazi 2022-03-02 11:42:51 -03:00 committed by Fridolin Somers
parent 5213c65cea
commit bbbb88f035
1 changed files with 3 additions and 3 deletions

View File

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