Bug 21105: (QA follow-up) Silence warning because of tests setup
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 12 Nov 2021 14:15:08 +0000 (11:15 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 15 Nov 2021 11:38:39 +0000 (12:38 +0100)
commit5cce1014445bcb39f88309b4e36cb7e87dc24e56
tree93d75b5beea1864809f3620cfc4b06fc6e465650
parent24c2fee5b47cc8bc5d41b2c91e45342f2428bcb6
Bug 21105: (QA follow-up) Silence warning because of tests setup

The tests are using 'http://localhost' and the regex is setting $baseURL
to empty in this case. It works on the oai.pl front-end.

This patch changes the regex.

To test:
1. Run:
   $ kshell
  k$ t/db_dependent/OAI/Server.t
=> FAIL: Boo! Warning!
2. Apply this patch
3. Repeat 2
=> SUCCESS: Oh, cool. No warning :-D
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/OAI/Server/Identify.pm