From 988c2abaf3b7a125be7521fb231bb2246753200b 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 Signed-off-by: Tomas Cohen Arazi (cherry picked from commit b8e4d7d7706fc129985f9a3dc2da550625941dbe) Signed-off-by: Martin Renvoize --- 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 80674fbde5..4f1f4d9bbe 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.39.2