From 345b46c5c0291a1eb72c842c0adecbc27153f7cf Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 17 May 2024 06:33:25 +0000 Subject: [PATCH] Bug 33237: (QA follow-up) Remove hardcoded kohadevbox path Content-Type: text/plain; charset=utf-8 Test plan: Run Letters.t (outside kohadevbox :) Signed-off-by: Marcel de Rooy --- t/db_dependent/Letters.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Letters.t b/t/db_dependent/Letters.t index 8ae4bcd3e2..ea1e859456 100755 --- a/t/db_dependent/Letters.t +++ b/t/db_dependent/Letters.t @@ -18,6 +18,7 @@ # along with Koha; if not, see . use Modern::Perl; +use File::Basename qw(dirname); use Test::More tests => 100; use Test::MockModule; use Test::Warn; @@ -882,7 +883,7 @@ subtest 'GetPreparedLetter' => sub { subtest 'TranslateNotices' => sub { plan tests => 10; - t::lib::Mocks::mock_config( 'intrahtdocs', '/kohadevbox/koha/t/mock_templates/intranet-tmpl' ); + t::lib::Mocks::mock_config( 'intrahtdocs', dirname(__FILE__) . '/../mock_templates/intranet-tmpl' ); t::lib::Mocks::mock_preference( 'OPACLanguages', 'fr-CA,en' ); my $amount = -20; -- 2.30.2