Bug 30889: Unit tests
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 20 Jun 2022 15:01:28 +0000 (16:01 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 30 Jun 2022 15:03:19 +0000 (12:03 -0300)
commitdefcdd85a4e75059df9f36bb620d9faaeb7fb677
treed7c37d7c04a2403702e5d038c678d745f98e57e7
parentc1fcf3510ea21df24ed02f6fec0a617833200cf5
Bug 30889: Unit tests

This patch adds a unit test for the 'enqueue' part of the bug. We check
that the mocked context (and interface) are recorded with the job
enqueue in the new 'context' field.

We do not yet test the 'process' end, where we then read the context out
and set the job Context from it.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
t/db_dependent/Koha/BackgroundJob.t
t/lib/Mocks.pm