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

(-)a/t/db_dependent/Koha/BackgroundJob.t (-2 / +2 lines)
Lines 69-75 subtest '_derived_class() tests' => sub { Link Here
69
69
70
subtest 'enqueue() tests' => sub {
70
subtest 'enqueue() tests' => sub {
71
71
72
    plan tests => 7;
72
    plan tests => 8;
73
73
74
    $schema->storage->txn_begin;
74
    $schema->storage->txn_begin;
75
75
Lines 108-113 subtest 'enqueue() tests' => sub { Link Here
108
    is( $job->size,           3,           'Three steps' );
108
    is( $job->size,           3,           'Three steps' );
109
    is( $job->status,         'new',       'Initial status set correctly' );
109
    is( $job->status,         'new',       'Initial status set correctly' );
110
    is( $job->borrowernumber, $patron->id, 'Borrowernumber set from userenv' );
110
    is( $job->borrowernumber, $patron->id, 'Borrowernumber set from userenv' );
111
    is( $job->queue,          'long_tasks', 'BatchUpdateItem should use the long_tasks queue' );
111
    is_deeply( $job->json->decode( $job->context ), $job_context, 'Context set from userenv + interface' );
112
    is_deeply( $job->json->decode( $job->context ), $job_context, 'Context set from userenv + interface' );
112
113
113
    $schema->storage->txn_rollback;
114
    $schema->storage->txn_rollback;
114
- 

Return to bug 32394