]> git.koha-community.org Git - koha.git/commit
Bug 30889: Unit tests
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 20 Jun 2022 15:01:28 +0000 (16:01 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 29 Jul 2022 17:06:01 +0000 (17:06 +0000)
commit8dcc54e8d79b22222f2140962c710bcd1b718877
tree2aa02f647be2f07200d41bf30697fb05d62f8c98
parent3d90579a0569357c0f655a391a1a63d49ca0b9d8
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>
(cherry picked from commit defcdd85a4e75059df9f36bb620d9faaeb7fb677)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
t/db_dependent/Koha/BackgroundJob.t
t/lib/Mocks.pm