From 3c42b8e4ddbebc5c482d0f2fd80d29b0929fea25 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 6 Feb 2018 14:32:27 -0300 Subject: [PATCH] Bug 20144: [sql_modes] Set default value for opac_news.content in tests Fix for: Field 'content' doesn't have a default value Signed-off-by: Josef Moravec Signed-off-by: Julian Maurice --- t/db_dependent/Letters/TemplateToolkit.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Letters/TemplateToolkit.t b/t/db_dependent/Letters/TemplateToolkit.t index 611b936d6a..746c8703d4 100644 --- a/t/db_dependent/Letters/TemplateToolkit.t +++ b/t/db_dependent/Letters/TemplateToolkit.t @@ -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(); -- 2.14.2