Bug 17960: Add opac_news.content values in tests

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2017-01-24 09:14:26 +01:00 committed by Kyle M Hall
parent 77c34a3d77
commit cbbe3619b9

View file

@ -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');