Lines 159-193
subtest 'Test indexer calls' => sub {
Link Here
|
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 |
|
161 |
|
162 |
$builder->build( |
|
|
163 |
{ |
164 |
source => 'Branchtransfer', |
165 |
value => { |
166 |
itemnumber => $item->itemnumber, |
167 |
datesent => dt_from_string, |
168 |
datearrived => undef, |
169 |
datecancelled => undef |
170 |
} |
171 |
} |
172 |
); |
173 |
warnings_are{ |
174 |
LostItem( $item->itemnumber, "tests"); |
175 |
} [$engine,"Koha::Item"], "index_records is called for $engine when calling LostItem and transfer exists"; |
176 |
$builder->build( |
177 |
{ |
178 |
source => 'Branchtransfer', |
179 |
value => { |
180 |
itemnumber => $item2->itemnumber, |
181 |
datesent => dt_from_string, |
182 |
datearrived => undef, |
183 |
datecancelled => undef |
184 |
} |
185 |
} |
186 |
); |
187 |
warnings_are{ |
188 |
LostItem( $item->itemnumber, "tests", undef, { skip_record_index => 1 }); |
189 |
} undef, "index_records is not called for $engine when calling LostItem and transfer exists if skip_record_index"; |
190 |
|
191 |
$item->datelastseen('2020-02-02'); |
162 |
$item->datelastseen('2020-02-02'); |
192 |
$item->store({skip_record_index=>1}); |
163 |
$item->store({skip_record_index=>1}); |
193 |
warnings_are{ |
164 |
warnings_are{ |
194 |
- |
|
|