From 987283fa74e9cb667dce2192c9a6c51167807b7a 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. Signed-off-by: Kyle M Hall Signed-off-by: Jonathan Druart --- t/Ediorder.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/Ediorder.t b/t/Ediorder.t index 30767a96716..1b89f8a9c5e 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.25.1