Created attachment 155778 [details] [review] Bug 34812: Remove Test::DBIx from Koha.t The DBIx fixture here is replaced by a simple mock on Libraries. getFacets only needs the count of libraries. Feels better than removing all libraries here.. Note: Moved tests at 'root level' to a new subtest. Test plan: Run t/Koha.t Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Created attachment 155779 [details] [review] Bug 34812: Move subtests to db_dependent/Koha.t Note that a few isbn tests were identical. Tidied the three moved subtests here. Test plan: Run t/db_dependent/Koha.t Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Taking the liberty to move this to SO. Just run the test.
Created attachment 155796 [details] [review] Bug 34812: Remove Test::DBIx from Koha.t The DBIx fixture here is replaced by a simple mock on Libraries. getFacets only needs the count of libraries. Feels better than removing all libraries here.. Note: Moved tests at 'root level' to a new subtest. Test plan: Run t/Koha.t Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Created attachment 155797 [details] [review] Bug 34812: Move subtests to db_dependent/Koha.t Note that a few isbn tests were identical. Tidied the three moved subtests here. Test plan: Run t/db_dependent/Koha.t Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Nice bit of tidying up.. works as expected.. Passing QA
Pushed to master for 23.11. Nice work everyone, thanks!
Enhancement not pushed to 23.05.x