Bugzilla – Attachment 174569 Details for
Bug 33641
We should record return library in old checkouts (oldissues)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33641: Fix unit tests
Bug-33641-Fix-unit-tests.patch (text/plain), 1.36 KB, created by
Matt Blenkinsop
on 2024-11-15 11:19:45 UTC
(
hide
)
Description:
Bug 33641: Fix unit tests
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2024-11-15 11:19:45 UTC
Size:
1.36 KB
patch
obsolete
>From f84d56b6c5250c7c62badefb1cc97b3707ab42a9 Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >Date: Fri, 15 Nov 2024 11:19:12 +0000 >Subject: [PATCH] Bug 33641: Fix unit tests > >--- > t/db_dependent/Circulation/StoreLastBorrower.t | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Circulation/StoreLastBorrower.t b/t/db_dependent/Circulation/StoreLastBorrower.t >index c3121bb954d..c4c7f37a225 100755 >--- a/t/db_dependent/Circulation/StoreLastBorrower.t >+++ b/t/db_dependent/Circulation/StoreLastBorrower.t >@@ -38,10 +38,11 @@ subtest 'Test StoreLastBorrower' => sub { > > t::lib::Mocks::mock_preference( 'StoreLastBorrower', '1' ); > >- my $patron = $builder->build( >+ my $library = $builder->build_object( { class => 'Koha::Libraries' } ); >+ my $patron = $builder->build( > { > source => 'Borrower', >- value => { privacy => 1, } >+ value => { privacy => 1, branchcode => $library->branchcode } > } > ); > >@@ -57,6 +58,8 @@ subtest 'Test StoreLastBorrower' => sub { > } > ); > >+ t::lib::Mocks::mock_userenv( { branchcode => $library->branchcode } ); >+ > $item = $item->get_from_storage; > my $patron_object = $item->last_returned_by(); > is( $patron_object, undef, 'Koha::Item::last_returned_by returned undef' ); >-- >2.39.3 (Apple Git-146)
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 33641
:
170105
|
170106
|
170107
|
170108
|
170109
|
170110
|
170111
|
170138
|
170139
|
170140
|
170141
|
173562
|
173563
|
173564
|
173565
|
174510
|
174511
|
174512
|
174513
|
174514
|
174536
|
174538
|
174569
|
174570
|
174571
|
174572
|
174573
|
174574
|
174584
|
174585