From 7758e932856545f4d42e90ffaf7b7157aa969c5f Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 14 Jul 2022 12:05:29 +0100 Subject: [PATCH] Bug 31134: Mock EdifactLSQ for t/Edifact.t This patch adds a mock for the EdifactLSQ preference so we can consistently pass when a database is not available. --- t/Ediorder.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/Ediorder.t b/t/Ediorder.t index 30767a9671..1b89f8a9c5 100755 --- a/t/Ediorder.t +++ b/t/Ediorder.t @@ -4,8 +4,10 @@ use warnings; use FindBin qw( $Bin ); use Test::More tests => 13; +use t::lib::Mocks; BEGIN { use_ok('Koha::Edifact::Order') } +t::lib::Mocks::mock_preference('EdifactLSQ', 'location'); # The following tests are for internal methods but they could # error spectacularly so best -- 2.20.1