Bug 30181: (QA follow-up) Update BatchTest
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 3 Mar 2022 13:24:11 +0000 (10:24 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 22 Mar 2022 20:17:33 +0000 (10:17 -1000)
commit8fdfa80609600b58f3022f0dfa5a742e8f41b896
tree43f7decabc4f7b03b1e57bc4ce35ee6e8a091f63
parentd6c5fd3625e02683dab724e7e13b4e04047d59ec
Bug 30181: (QA follow-up) Update BatchTest

This patch updates t::lib::Koha::BackgroundJob::BatchTest to the new
style, and also removes a couple stray cases in which job_id was still
passed as a parameter.

Tests are rewritten a bit, so they actually test more of the behaviors.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/BackgroundJobs.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/Koha/BackgroundJobs.t
t/lib/Koha/BackgroundJob/BatchTest.pm