From 332a50ad86381e43f000c286fda081d79276e457 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 14 Dec 2022 09:01:33 +0100 Subject: [PATCH] Bug 32394: [22.05.x] Add tests Signed-off-by: Tomas Cohen Arazi --- 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..4f1f4d9bbe7 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', 'BatchUpdateItem should use the long_tasks queue' ); is_deeply( $job->json->decode( $job->context ), $job_context, 'Context set from userenv + interface' ); $schema->storage->txn_rollback; -- 2.25.1