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 <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2022-07-14 12:05:29 +01:00 committed by Tomas Cohen Arazi
parent b6afcdbf48
commit 318bb17d58
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 2 additions and 0 deletions

View File

@ -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