]> git.koha-community.org Git - koha.git/commit
Bug 36084: Fix cookie domain for www/ tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 4 Mar 2024 13:20:05 +0000 (10:20 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 4 Mar 2024 13:33:24 +0000 (14:33 +0100)
commit24191009bdaeb46e89b4349714d500efed06a3ad
tree6096f2183efcbcd1bbda0bb7c173da542e0cf3b7
parent36c4d315c8b4bac116377d7fac4d9e51414c7f80
Bug 36084: Fix cookie domain for www/ tests

This patch changes the hardcoded `koha.local` value on
t::lib::Mocks::Zebra so tests don't fail when the domain is not `koha`.

To test:
1. Run:
   $ ktd --shell
  k$ export KOHA_INTRANET_URL=http://kohadev-intra.myDNSname.org:8081
  k$ prove t/db_dependent/www/batch.t
=> FAIL: Tests fail!
2. Apply this patch
3. Repeat 1
=> SUCCESS: Tests pass!
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/lib/Mocks/Zebra.pm