View | Details | Raw Unified | Return to bug 28210
Collapse All | Expand All

(-)a/t/db_dependent/Koha/SearchEngine/Indexer.t (-2 / +7 lines)
Lines 61-67 subtest 'Test indexer object creation' => sub { Link Here
61
};
61
};
62
62
63
subtest 'Test indexer calls' => sub {
63
subtest 'Test indexer calls' => sub {
64
    plan tests => 36;
64
    plan tests => 40;
65
65
66
    my @engines = ('Zebra');
66
    my @engines = ('Zebra');
67
    eval { Koha::SearchEngine::Elasticsearch->get_elasticsearch_params; };
67
    eval { Koha::SearchEngine::Elasticsearch->get_elasticsearch_params; };
Lines 158-163 subtest 'Test indexer calls' => sub { Link Here
158
        warnings_are{
158
        warnings_are{
159
            AddReturn($item->barcode, $item->homebranch, 0, undef);
159
            AddReturn($item->barcode, $item->homebranch, 0, undef);
160
        } [$engine,'C4::Circulation'], "index_records is called once for $engine when calling AddReturn if item not issued";
160
        } [$engine,'C4::Circulation'], "index_records is called once for $engine when calling AddReturn if item not issued";
161
        warnings_are{
162
            LostItem( $item->itemnumber, "tests", 1);
163
        } [$engine,"Koha::Item"], "index_records is called for $engine when calling LostItem with 'force_mark_returned'";
164
        warnings_are{
165
            LostItem( $item->itemnumber, "tests", 1, { skip_record_index => 1 });
166
        } undef, "index_records is not called for $engine when calling LostItem with 'force_mark_returned' if skip_record_index";
161
167
162
        $item->datelastseen('2020-02-02');
168
        $item->datelastseen('2020-02-02');
163
        $item->store({skip_record_index=>1});
169
        $item->store({skip_record_index=>1});
164
- 

Return to bug 28210