From 25121e946470f53cb76caee5b6e40e0cd40d9f47 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 5 Feb 2018 16:24:56 -0300 Subject: [PATCH] Bug 20144: [sql_modes] Add a value for borrower_attribute_types.description in tests Fix for: Field 'description' doesn't have a default value t/db_dependent/Koha/Patron/Attribute/Types.t Signed-off-by: Josef Moravec Signed-off-by: Julian Maurice --- t/db_dependent/Koha/Patron/Attribute/Types.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/db_dependent/Koha/Patron/Attribute/Types.t b/t/db_dependent/Koha/Patron/Attribute/Types.t index 06aca19af5..80378c594d 100644 --- a/t/db_dependent/Koha/Patron/Attribute/Types.t +++ b/t/db_dependent/Koha/Patron/Attribute/Types.t @@ -297,19 +297,19 @@ subtest 'search() with branch limits tests' => sub { Koha::Patron::Attribute::Types->search()->delete(); my $object_code_1 - = Koha::Patron::Attribute::Type->new( { code => 'code_1', } ) + = Koha::Patron::Attribute::Type->new( { code => 'code_1', description => 'a description for code_1' } ) ->store(); my $object_code_2 - = Koha::Patron::Attribute::Type->new( { code => 'code_2', } ) + = Koha::Patron::Attribute::Type->new( { code => 'code_2', description => 'a description for code_2' } ) ->store(); my $object_code_3 - = Koha::Patron::Attribute::Type->new( { code => 'code_3', } ) + = Koha::Patron::Attribute::Type->new( { code => 'code_3', description => 'a description for code_3' } ) ->store(); my $object_code_4 - = Koha::Patron::Attribute::Type->new( { code => 'code_4', } ) + = Koha::Patron::Attribute::Type->new( { code => 'code_4', description => 'a description for code_4' } ) ->store(); is( Koha::Patron::Attribute::Types->search()->count, -- 2.14.2