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

(-)a/t/db_dependent/Koha/News.t (-2 / +2 lines)
Lines 19-25 Link Here
19
19
20
use Modern::Perl;
20
use Modern::Perl;
21
21
22
use Test::More tests => 4;
22
use Test::More tests => 5;
23
23
24
use Koha::NewsItem;
24
use Koha::NewsItem;
25
use Koha::News;
25
use Koha::News;
Lines 47-52 is( Koha::News->search->count, $nb_of_news + 2, 'The 2 news should have been add Link Here
47
47
48
my $retrieved_news_item_1 = Koha::News->find( $new_news_item_1->idnew );
48
my $retrieved_news_item_1 = Koha::News->find( $new_news_item_1->idnew );
49
is( $retrieved_news_item_1->title, $new_news_item_1->title, 'Find a news_item by id should return the correct news_item' );
49
is( $retrieved_news_item_1->title, $new_news_item_1->title, 'Find a news_item by id should return the correct news_item' );
50
is( $retrieved_news_item_1->new, $new_news_item_1->new, 'This test is failing because ->new is not a valid accessor');
50
51
51
$retrieved_news_item_1->delete;
52
$retrieved_news_item_1->delete;
52
is( Koha::News->search->count, $nb_of_news + 1, 'Delete should have deleted the news_item' );
53
is( Koha::News->search->count, $nb_of_news + 1, 'Delete should have deleted the news_item' );
53
- 

Return to bug 17960