While trying to debug, I found prove t/db_dependent/Members/AddEnrolmentFeeIfNeeded.t failed if sample data wasn't in the database. This should be fixed.
Created attachment 34370 [details] [review] Bug 13455: Members/AddEnrolmentFeeIfNeeded.t requires sample data TEST PLAN --------- 1) Make sure there are no 'J', 'K', nor 'YA' patron category codes. 2) Make sure there are no 'CPL' nor 'MPL' branch codes. 3) prove t/db_dependent/Members/AddEnrolmentFeeIfNeeded.t -- dies horribly 4) apply patch 5) prove t/db_dependent/Members/AddEnrolmentFeeIfNeeded.t -- passes 6) Run koha qa test tools
Created attachment 36008 [details] [review] Bug 13455: Members/AddEnrolmentFeeIfNeeded.t requires sample data TEST PLAN --------- 1) Make sure there are no 'J', 'K', nor 'YA' patron category codes. 2) Make sure there are no 'CPL' nor 'MPL' branch codes. 3) prove t/db_dependent/Members/AddEnrolmentFeeIfNeeded.t -- dies horribly 4) apply patch 5) prove t/db_dependent/Members/AddEnrolmentFeeIfNeeded.t -- passes 6) Run koha qa test tools Signed-off-by: Magnus Enger <magnus@enger.priv.no> For me, the tests fail because I have a Norweian setup with different categories etc. After applying the patch the tests pass.
I still completely disagree with this kind of patch, see my comments on bug 13457.
Moving this to "In Discussion".
(In reply to Jonathan Druart from comment #3) > I still completely disagree with this kind of patch, see my comments on bug > 13457. Have we settled on assuming the sample data is available?
(In reply to Katrin Fischer from comment #5) > (In reply to Jonathan Druart from comment #3) > > I still completely disagree with this kind of patch, see my comments on bug > > 13457. > > Have we settled on assuming the sample data is available? use TestBuilder.
And this is what did this commit commit f9654783e2154bfd95cac92ae9b23615d88538e2 Bug 16912: Koha::Patrons - Move and rewrite tests for AddEnrolmentFeeIfNeeded *** This bug has been marked as a duplicate of bug 16912 ***