Bug 20144: [sql_modes] Add a value for borrower_attribute_types.description in tests
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 5 Feb 2018 19:24:56 +0000 (16:24 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 13 Feb 2018 16:58:52 +0000 (13:58 -0300)
Fix for:
Field 'description' doesn't have a default value

t/db_dependent/Koha/Patron/Attribute/Types.t

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Koha/Patron/Attribute/Types.t

index 06aca19..80378c5 100644 (file)
@@ -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,