Bugzilla – Attachment 145152 Details for
Bug 32013
Autorenewals is effectively a bulk action and should be treated as such
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32013: (QA follow-up) Move mock to avoid warns from sample data creation
Bug-32013-QA-follow-up-Move-mock-to-avoid-warns-fr.patch (text/plain), 1.73 KB, created by
Nick Clemens (kidclamp)
on 2023-01-09 15:44:59 UTC
(
hide
)
Description:
Bug 32013: (QA follow-up) Move mock to avoid warns from sample data creation
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2023-01-09 15:44:59 UTC
Size:
1.73 KB
patch
obsolete
>From 8ef0b1ef9e9eb06b6ddb2403364632b743e55dd1 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Mon, 9 Jan 2023 14:57:44 +0000 >Subject: [PATCH] Bug 32013: (QA follow-up) Move mock to avoid warns from > sample data creation > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > t/db_dependent/Koha/SearchEngine/Indexer.t | 13 +++++++------ > 1 file changed, 7 insertions(+), 6 deletions(-) > >diff --git a/t/db_dependent/Koha/SearchEngine/Indexer.t b/t/db_dependent/Koha/SearchEngine/Indexer.t >index 726ac6c902..82589fe4dc 100755 >--- a/t/db_dependent/Koha/SearchEngine/Indexer.t >+++ b/t/db_dependent/Koha/SearchEngine/Indexer.t >@@ -261,12 +261,6 @@ subtest 'Test AddRenewal indexer call' => sub { > t::lib::Mocks::mock_preference( 'SearchEngine', $engine ); > my $mock_index = Test::MockModule->new("Koha::SearchEngine::".$engine."::Indexer"); > >- $mock_index->mock( index_records => sub { >- warn $engine; >- my ($package, undef, undef) = caller; >- warn $package; >- }); >- > my $biblio = $builder->build_sample_biblio(); > my $patron = $builder->build_object( { class => 'Koha::Patrons' } ); > my $item = $builder->build_sample_item({ >@@ -282,6 +276,13 @@ subtest 'Test AddRenewal indexer call' => sub { > } > }); > >+ $mock_index->mock( index_records => sub { >+ warn $engine; >+ my ($package, undef, undef) = caller; >+ warn $package; >+ }); >+ >+ > warnings_are{ > AddRenewal($patron->borrowernumber, $item->itemnumber, $item->homebranch, undef, undef, undef, 0); > } [$engine,"Koha::Item"], "index_records is called for $engine when adding a renewal (AddRenewal())"; >-- >2.30.2
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 32013
:
144442
|
144464
|
145150
|
145151
|
145152
|
145186
|
145187
|
145188
|
149276
|
149277
|
149278
|
149279