From 057aa995853bff682c6f5c9a1d637f268e50f7c9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 24 Jan 2017 09:14:26 +0100 Subject: [PATCH] [SIGNED-OFF] Bug 17960: Add opac_news.content values in tests Signed-off-by: Josef Moravec --- t/db_dependent/Koha/News.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/db_dependent/Koha/News.t b/t/db_dependent/Koha/News.t index debae26..bc5c5c9 100644 --- a/t/db_dependent/Koha/News.t +++ b/t/db_dependent/Koha/News.t @@ -36,10 +36,12 @@ my $nb_of_news = Koha::News->search->count; my $new_news_item_1 = Koha::NewsItem->new({ branchcode => $library->{branchcode}, title => 'a news', + content => 'content for news 1', })->store; my $new_news_item_2 = Koha::NewsItem->new({ branchcode => $library->{branchcode}, title => 'another news', + content => 'content for news 2', })->store; like( $new_news_item_1->idnew, qr|^\d+$|, 'Adding a new news_item should have set the idnew'); -- 2.1.4