From cdbc04f69d751d2b08dc256d61972330512c3a0d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 11 Nov 2020 18:03:08 +0100 Subject: [PATCH] Bug 22818: Fix TestBuilder.t t/db_dependent/TestBuilder.t .. 12/13 # Failed test 'build_object() tests' # at t/db_dependent/TestBuilder.t line 429. Can't locate object method "_new_from_dbic" via package "Koha::MessageAttribute" (perhaps you forgot to load "Koha::MessageAttribute"?) at /kohadevbox/koha/Koha/Objects.pm line 98. Signed-off-by: Jonathan Druart --- Koha/MessageAttributes.pm | 1 + t/db_dependent/Illrequests.t | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/MessageAttributes.pm b/Koha/MessageAttributes.pm index 48d037a39b..2c314d7301 100644 --- a/Koha/MessageAttributes.pm +++ b/Koha/MessageAttributes.pm @@ -22,6 +22,7 @@ use Modern::Perl; use Carp; use base qw(Koha::Objects); +use Koha::MessageAttribute; =head1 NAME diff --git a/t/db_dependent/Illrequests.t b/t/db_dependent/Illrequests.t index cc929759b6..0ed98219e1 100755 --- a/t/db_dependent/Illrequests.t +++ b/t/db_dependent/Illrequests.t @@ -30,7 +30,6 @@ use Koha::ItemTypes; use Koha::Items; use Koha::Libraries; use Koha::MessageAttributes; -use Koha::MessageAttribute; use Koha::Notice::Templates; use Koha::AuthorisedValueCategories; use Koha::AuthorisedValues; -- 2.39.5