From 92b1441a9c46b81b6167ca17319e8fa3b18656cb Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 14 Dec 2022 09:01:33 +0100 Subject: [PATCH] Bug 32394: Add tests --- t/db_dependent/Koha/BackgroundJob.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/BackgroundJob.t b/t/db_dependent/Koha/BackgroundJob.t index 80674fbde58..fa322464b4c 100755 --- a/t/db_dependent/Koha/BackgroundJob.t +++ b/t/db_dependent/Koha/BackgroundJob.t @@ -69,7 +69,7 @@ subtest '_derived_class() tests' => sub { subtest 'enqueue() tests' => sub { - plan tests => 7; + plan tests => 8; $schema->storage->txn_begin; @@ -108,6 +108,7 @@ subtest 'enqueue() tests' => sub { is( $job->size, 3, 'Three steps' ); is( $job->status, 'new', 'Initial status set correctly' ); is( $job->borrowernumber, $patron->id, 'Borrowernumber set from userenv' ); + is( $job->queue, 'long_tasks' ); is_deeply( $job->json->decode( $job->context ), $job_context, 'Context set from userenv + interface' ); $schema->storage->txn_rollback; -- 2.25.1