Bug 35507: Plugins.t - Mock SessionStorage, remove KitchenSink
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tue, 12 Dec 2023 14:07:49 +0000 (14:07 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 3 Jan 2024 14:15:24 +0000 (15:15 +0100)
commitbfb2a929e30e30e7bf490364fc216ca69c966e62
tree4cab5d1d1bf4e3b1523f764d8d2515f9421aca8f
parentf1c2269488c6e5982d2788fa558204a4befa8b13
Bug 35507: Plugins.t - Mock SessionStorage, remove KitchenSink

Removing the CGI::Session behavior to auto-commit by mocking
SessionStorage makes that the $plugin->test_template does no
longer commit.

Since KitchenSink includes a CREATE TABLE, removing that code
removes the second implicit commit. We might move that code
to its own script?

Adds a missing rollback too at the end.

Test plan:
Run prove t/db_dependent/Koha/Plugins/Plugins.t
Verify that no records got added to plugin_data/methods table.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit dc62d9bed5799b9583bbc1ed59ea37972d7fe472)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/Koha/Plugins/Plugins.t