View | Details | Raw Unified | Return to bug 17960
Collapse All | Expand All

(-)a/t/db_dependent/Koha/News.t (-1 / +2 lines)
Lines 36-45 my $nb_of_news = Koha::News->search->count; Link Here
36
my $new_news_item_1 = Koha::NewsItem->new({
36
my $new_news_item_1 = Koha::NewsItem->new({
37
    branchcode => $library->{branchcode},
37
    branchcode => $library->{branchcode},
38
    title => 'a news',
38
    title => 'a news',
39
    content => 'content for news 1',
39
})->store;
40
})->store;
40
my $new_news_item_2 = Koha::NewsItem->new({
41
my $new_news_item_2 = Koha::NewsItem->new({
41
    branchcode => $library->{branchcode},
42
    branchcode => $library->{branchcode},
42
    title => 'another news',
43
    title => 'another news',
44
    content => 'content for news 2',
43
})->store;
45
})->store;
44
46
45
like( $new_news_item_1->idnew, qr|^\d+$|, 'Adding a new news_item should have set the idnew');
47
like( $new_news_item_1->idnew, qr|^\d+$|, 'Adding a new news_item should have set the idnew');
46
- 

Return to bug 17960