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>
This commit is contained in:
parent
3c3406257e
commit
5f2414686d
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue