Bug 22818: Fix TestBuilder.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 11 Nov 2020 17:03:08 +0000 (18:03 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 11 Nov 2020 17:03:17 +0000 (18:03 +0100)
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 <jonathan.druart@bugs.koha-community.org>
Koha/MessageAttributes.pm
t/db_dependent/Illrequests.t

index 48d037a..2c314d7 100644 (file)
@@ -22,6 +22,7 @@ use Modern::Perl;
 use Carp;
 
 use base qw(Koha::Objects);
+use Koha::MessageAttribute;
 
 =head1 NAME
 
index cc92975..0ed9821 100755 (executable)
@@ -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;