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:
parent
77c34a3d77
commit
cbbe3619b9
1 changed files with 2 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue