Bug 20144: [sql_modes] Set default value for opac_news.content in tests
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 6 Feb 2018 17:32:27 +0000 (14:32 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 13 Feb 2018 16:59:00 +0000 (13:59 -0300)
Fix for:
Field 'content' doesn't have a default value

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/Letters/TemplateToolkit.t

index 611b936..746c870 100644 (file)
@@ -88,7 +88,7 @@ my $hold = Koha::Hold->new(
     }
 )->store();
 
-my $news         = Koha::NewsItem->new()->store();
+my $news         = Koha::NewsItem->new({ title => 'a news title', content => 'a news content'})->store();
 my $serial       = Koha::Serial->new()->store();
 my $subscription = Koha::Subscription->new()->store();
 my $suggestion   = Koha::Suggestion->new()->store();