From 1b7db7e36934f9b72a3599733fcc81502975c075 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 14 Oct 2022 10:57:30 +0200 Subject: [PATCH] Revert "Bug 30718: (follow-up) index_records is called more times than we thought" This reverts commit 35165e5f13ec11a62dea7f6b129f7f07c7ecb7f4. https://bugs.koha-community.org/show_bug.cgi?id=31437 Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/Koha/SearchEngine/Indexer.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/Koha/SearchEngine/Indexer.t b/t/db_dependent/Koha/SearchEngine/Indexer.t index c593d03eda..5dca8c7a77 100755 --- a/t/db_dependent/Koha/SearchEngine/Indexer.t +++ b/t/db_dependent/Koha/SearchEngine/Indexer.t @@ -223,10 +223,10 @@ subtest 'Test indexer calls' => sub { warnings_are{ ModItemTransfer( $item->itemnumber, $item2->homebranch, $item->homebranch,'Manual'); - } [$engine,"Koha::Item",$engine,"Koha::Item"], "index_records is called twice for $engine when calling ModItemTransfer"; + } [$engine,"Koha::Item"], "index_records is called for $engine when calling ModItemTransfer"; warnings_are{ - ModItemTransfer( $item->itemnumber, $item->homebranch, $item2->homebranch,'Manual',{ skip_record_index => 1 }); - } [$engine,"Koha::Item"], "index_records is called once for $engine when calling ModItemTransfer with skip_record_index"; + ModItemTransfer( $item->itemnumber, $item->homebranch, $item2->homebranch,'Manual',{skip_record_index=>1}); + } undef, "index_records is not called for $engine when calling ModItemTransfer with skip_record_index"; warnings_are{ $item->delete(); -- 2.39.5