https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42625

--- Comment #162 from Andrew Fuerste-Henry <[email protected]> ---
Created attachment 208389
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208389&action=edit
Bug 42625: (QA follow-up) Update MARCImportCommitBatch.t for num_locked

BatchCommitRecords now returns a seventh value, the number of records
skipped because they are locked. The mocked return values in
MARCImportCommitBatch.t only supplied six, so $num_locked was undef and
the job raised 'uninitialized value' warnings, failing Test::NoWarnings.

This patch adds the seventh value to the existing mocks and adds a case
covering a batch where some records are skipped as locked.

Test plan:
1. prove t/db_dependent/Koha/BackgroundJob/MARCImportCommitBatch.t
2. All tests pass, with no warnings

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Andrew Fuerste Henry <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to