Bugzilla – Attachment 101140 Details for
Bug 20443
Move C4::Members::Attributes to Koha namespace
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20443: (follow-up) Fix t/db_dependent/Koha/Patrons.t
Bug-20443-follow-up-Fix-tdbdependentKohaPatronst.patch (text/plain), 1.45 KB, created by
Jonathan Druart
on 2020-03-20 14:48:04 UTC
(
hide
)
Description:
Bug 20443: (follow-up) Fix t/db_dependent/Koha/Patrons.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-03-20 14:48:04 UTC
Size:
1.45 KB
patch
obsolete
>From a4bf151e126634b2f2684c0eeb7196cdf207feba Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Thu, 7 Mar 2019 07:23:33 +0000 >Subject: [PATCH] Bug 20443: (follow-up) Fix t/db_dependent/Koha/Patrons.t > >Signed-off-by: Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > t/db_dependent/Koha/Patrons.t | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Koha/Patrons.t b/t/db_dependent/Koha/Patrons.t >index 4e606beee6..8a66a3d0ae 100644 >--- a/t/db_dependent/Koha/Patrons.t >+++ b/t/db_dependent/Koha/Patrons.t >@@ -2028,7 +2028,7 @@ subtest 'extended_attributes' => sub { > my $patron_1 = $builder->build_object({class=> 'Koha::Patrons'}); > my $patron_2 = $builder->build_object({class=> 'Koha::Patrons'}); > >- set_logged_in_user($patron_1); >+ t::lib::Mocks::mock_userenv({ patron => $patron_1 }); > > my $attribute_type1 = Koha::Patron::Attribute::Type->new( > { >@@ -2103,7 +2103,7 @@ subtest 'extended_attributes' => sub { > is( $non_existent, undef, 'Koha::Patron->get_extended_attribute must return undef if the attribute does not exist' ); > > # Test branch limitations >- set_logged_in_user($patron_2); >+ t::lib::Mocks::mock_userenv({ patron => $patron_2 }); > # Return all > $extended_attributes_for_1 = $patron_1->extended_attributes; > is( $extended_attributes_for_1->count, 3, 'There should be 2 attributes for patron 1, the limited one should be returned'); >-- >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 20443
:
101122
|
101123
|
101124
|
101125
|
101126
|
101127
|
101128
|
101129
|
101130
|
101131
|
101132
|
101133
|
101134
|
101135
|
101136
|
101137
|
101138
|
101139
|
101140
|
101141
|
101142
|
101143
|
101144
|
101145
|
101146
|
101147
|
101148
|
101149
|
101150
|
101209
|
101210
|
101211
|
101212
|
101213
|
101214
|
101215
|
101216
|
101217
|
101218
|
101219
|
101220
|
101221
|
101222
|
101223
|
101224
|
101225
|
101226
|
101227
|
101228
|
101229
|
101230
|
101231
|
101232
|
101233
|
101234
|
101235
|
101236
|
101237
|
101472
|
104519