Bug 25008: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 27 Mar 2020 20:53:32 +0000 (17:53 -0300)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 13 May 2020 22:01:55 +0000 (22:01 +0000)
commitda64d7ceb9bed580f4bf6230312c94a00d8fdbc3
tree739dc0b834dd26a2243ef3c06460659304820026
parent0d06d789f7fa6dfaee7b208d2775a3f51e60477d
Bug 25008: Regression tests

This patch highlights a behaviour of Koha::RecordProcessor that is
unexpected: if you change the original options using ->options, the
loaded filters don't pick the change. That's because the filter objects
are loaded on ->new, and they are never updated.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/RecordProcessor.t
=> FAIL: Test prove ->options doesn't update the filters!

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit 008b09ce057e117766a95c03f551cab82e90c424)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
t/RecordProcessor.t