Koha/t/lib
Marcel de Rooy 0405071987 Bug 33718: Fix the mock of Koha::Config->get in mock_config
It should not mock calls for other sections than 'config' in
koha-conf.xml.

Test plan:
Without this patch:
[1] Enable AutoLinkBiblios, CatalogModuleRelink and LinkerRelink.
This will trigger a SearchAuthorities call when creating a sample biblio.
Note: SearchAuthorities calls Zconn and gets back information from
a wrong part of koha-conf.xml.
[2] Run t/db_dependent/Koha/Pseudonymization.t
You should see something like:
  {UNKNOWN}: Can't use string ("authorities") as a HASH ref while "strict refs" in use at /usr/share/koha/C4/Context.pm line 587. at /usr/share/koha/C4/Biblio.pm line 302

With this patch:
[3] Run t/db_dependent/Koha/Pseudonymization.t. Should pass now.
[4] git grep -l mock_config | xargs -i{} prove {}
    Exclude Mocks.pm.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
(cherry picked from commit 50d3c3c0a8)
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
2023-06-07 10:16:07 +00:00
..
bad_plugins/Koha/Plugin
IdP Bug 31378: Rename Auth Provider to Identity Provider and add Client.t tests 2022-11-08 14:39:51 -03:00
Koha/BackgroundJob
Mocks Bug 31992: Fix t::lib::Mocks::Zebra 2022-10-28 16:30:05 -03:00
plugins/Koha/Plugin Bug 31896: New after_recall_action hook 2022-11-09 14:34:41 -03:00
QA
Bootstrap.pm
Dates.pm
Mocks.pm Bug 33718: Fix the mock of Koha::Config->get in mock_config 2023-06-07 10:16:07 +00:00
Selenium.pm Bug 32010: 2AF selenium tests - Alert can appear when we are waiting for ajax 2022-11-22 08:55:09 -03:00
TestBuilder.pm Bug 29234: (QA follow-up) Fix test that expects wrong defaults 2023-04-16 18:04:52 +01:00