Bug 27317: (Bug 27127 follow-up) fix t/db_dependent/Koha/BackgroundJobs.t
Bug 27127 changed Koha::BackgroundJob->messages to return arrayref instead of array.
This impacts Unit Test t/db_dependent/Koha/BackgroundJobs.t failling on :
not ok 10 - 10 messages generated
Test plan :
prove t/db_dependent/Koha/BackgroundJobs.t
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Edit: I fixed the indentation of the test label.
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
(cherry picked from commit 5f2414686d)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
51fcc453f9
commit
5a68837bc6
|
|
@ -73,7 +73,7 @@ $new_job->status('new')->store;
|
|||
$new_job =
|
||||
t::lib::Koha::BackgroundJob::BatchTest->process( { job_id => $new_job->id } );
|
||||
is( $new_job->status, "finished", 'job is new finished!' );
|
||||
is( scalar( $new_job->messages ), 10, '10 messages generated' );
|
||||
is( scalar( @{ $new_job->messages } ), 10, '10 messages generated' );
|
||||
is_deeply(
|
||||
$new_job->report,
|
||||
{ total_records => 10, total_success => 10 },
|
||||
|
|
|
|||
Loading…
Reference in New Issue