Bugzilla – Attachment 131258 Details for
Bug 29857
We must stringify our exceptions correctly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29857: (follow-up) Fix t/db_dependent/Koha/Patron/Modifications.t
Bug-29857-follow-up-Fix-tdbdependentKohaPatronModi.patch (text/plain), 1.43 KB, created by
Tomás Cohen Arazi
on 2022-03-02 14:43:06 UTC
(
hide
)
Description:
Bug 29857: (follow-up) Fix t/db_dependent/Koha/Patron/Modifications.t
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi
Created:
2022-03-02 14:43:06 UTC
Size:
1.43 KB
patch
obsolete
>From b2d9fa0cdb39de41b6867d542a415342a0297264 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >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 <tomascohen@theke.io> >--- > 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.32.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29857
:
129329
|
129330
|
130007
|
130008
|
130009
|
130010
|
130011
|
130012
|
130013
|
130014
|
130015
|
130156
|
130157
|
130158
|
130355
|
131112
|
131113
|
131114
|
131115
|
131116
|
131117
|
131232
|
131240
|
131241
|
131242
|
131243
|
131244
|
131256
| 131258 |
131287
|
131288
|
131289
|
131290
|
131291