Bug 32394: (follow-up) Add param for Koha::BackgroundJob::StageMARCForImport->enqueue
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
42d60ad850
commit
3dcdd6db78
|
|
@ -196,6 +196,7 @@ Enqueue the new job
|
|||
sub enqueue {
|
||||
my ( $self, $args) = @_;
|
||||
|
||||
# FIXME: no $args validation
|
||||
$self->SUPER::enqueue({
|
||||
job_size => 0, # TODO Unknown for now?
|
||||
job_args => $args,
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ subtest 'enqueue() tests' => sub {
|
|||
|
||||
$schema->storage->txn_begin;
|
||||
|
||||
my $job_id = Koha::BackgroundJob::StageMARCForImport->new->enqueue();
|
||||
my $job_id = Koha::BackgroundJob::StageMARCForImport->new->enqueue({});
|
||||
my $job = Koha::BackgroundJobs->find($job_id)->_derived_class;
|
||||
|
||||
is( $job->size, 0, 'Size is correct' );
|
||||
|
|
|
|||
Loading…
Reference in New Issue