View | Details | Raw Unified | Return to bug 32394
Collapse All | Expand All

(-)a/Koha/BackgroundJob/StageMARCForImport.pm (+1 lines)
Lines 196-201 Enqueue the new job Link Here
196
sub enqueue {
196
sub enqueue {
197
    my ( $self, $args) = @_;
197
    my ( $self, $args) = @_;
198
198
199
    # FIXME: no $args validation
199
    $self->SUPER::enqueue({
200
    $self->SUPER::enqueue({
200
        job_size  => 0, # TODO Unknown for now?
201
        job_size  => 0, # TODO Unknown for now?
201
        job_args  => $args,
202
        job_args  => $args,
(-)a/t/db_dependent/Koha/BackgroundJob/StageMARCForImport.t (-2 / +1 lines)
Lines 35-41 subtest 'enqueue() tests' => sub { Link Here
35
35
36
    $schema->storage->txn_begin;
36
    $schema->storage->txn_begin;
37
37
38
    my $job_id = Koha::BackgroundJob::StageMARCForImport->new->enqueue();
38
    my $job_id = Koha::BackgroundJob::StageMARCForImport->new->enqueue({});
39
    my $job    = Koha::BackgroundJobs->find($job_id)->_derived_class;
39
    my $job    = Koha::BackgroundJobs->find($job_id)->_derived_class;
40
40
41
    is( $job->size,   0,            'Size is correct' );
41
    is( $job->size,   0,            'Size is correct' );
42
- 

Return to bug 32394