Bug 25008: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 27 Mar 2020 20:53:32 +0000 (17:53 -0300)
committerJoy Nelson <joy@bywatersolutions.com>
Tue, 5 May 2020 20:34:29 +0000 (20:34 +0000)
commit008b09ce057e117766a95c03f551cab82e90c424
treeb36220470c6958b64ff622bde5bc71aa1852b198
parent0b7d3b4331c69238ae04fdb895baeae9ce0742cf
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>
t/RecordProcessor.t