Bug 32013: Adjust unit tests

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Nick Clemens 2023-04-07 13:35:39 +00:00 committed by Tomas Cohen Arazi
parent 4f51c1801c
commit b7d7a334e3
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -285,9 +285,9 @@ subtest 'Test AddRenewal indexer call' => sub {
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())";
} [$engine,"C4::Circulation"], "index_records is called for $engine when adding a renewal (AddRenewal())";
warnings_are{
AddRenewal($patron->borrowernumber, $item->itemnumber, undef, undef, undef, undef, 0, 1);
AddRenewal($patron->borrowernumber, $item->itemnumber, undef, undef, undef, undef, 0, 1, 1);
} undef, "index_records is not called for $engine when adding a renewal (AddRenewal()) with skip_record_index";
}