Bugzilla – Attachment 102150 Details for
Bug 22001
Add RaiseError and PrintError flags for all tests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22001: Fix Koha/Patrons.t
Bug-22001-Fix-KohaPatronst.patch (text/plain), 1.38 KB, created by
Jonathan Druart
on 2020-03-31 15:59:08 UTC
(
hide
)
Description:
Bug 22001: Fix Koha/Patrons.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-03-31 15:59:08 UTC
Size:
1.38 KB
patch
obsolete
>From a035bf419353c93973310dba0566d1cc7a7b579a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 31 Mar 2020 17:54:36 +0200 >Subject: [PATCH] Bug 22001: Fix Koha/Patrons.t > >The message is only printed once >--- > t/db_dependent/Koha/Patrons.t | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > >diff --git a/t/db_dependent/Koha/Patrons.t b/t/db_dependent/Koha/Patrons.t >index 0c5bb31246..d4582fcbd9 100644 >--- a/t/db_dependent/Koha/Patrons.t >+++ b/t/db_dependent/Koha/Patrons.t >@@ -2095,12 +2095,9 @@ subtest 'extended_attributes' => sub { > $patron_2->extended_attributes->filter_by_branch_limitations->delete; > $patron_1->extended_attributes($attributes_for_1); > >- my $print_error = $schema->storage->dbh->{PrintError}; >- $schema->storage->dbh->{PrintError} = 0; > warning_like { > $patron_2->extended_attributes($attributes_for_2); >- } [ qr/a foreign key constraint fails/, qr/a foreign key constraint fails/ ], 'nonexistent attribute should have not exploded but print a warning'; >- $schema->storage->dbh->{PrintError} = $print_error; >+ } [ qr/a foreign key constraint fails/ ], 'nonexistent attribute should have not exploded but print a warning'; > > my $extended_attributes_for_1 = $patron_1->extended_attributes; > is( $extended_attributes_for_1->count, 3, 'There should be 3 attributes now for patron 1'); >-- >2.20.1
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 22001
:
83230
|
83231
|
83232
|
98910
|
98911
|
98912
|
99589
|
99590
|
99591
|
101989
|
101990
|
101991
|
102070
|
102140
|
102147
|
102149
| 102150 |
102151
|
102152