From c302a2b53f58657acee1b9b12adb83b870b049fd Mon Sep 17 00:00:00 2001 From: Martin Persson Date: Fri, 18 Dec 2015 16:40:02 +0100 Subject: [PATCH] Bug 14272: Show single news item (tests) Updates tests to match the modified NewsChannels module. Sponsored-by: Halland County Library --- t/db_dependent/NewsChannels.t | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/NewsChannels.t b/t/db_dependent/NewsChannels.t index 2f38c78..f720497 100644 --- a/t/db_dependent/NewsChannels.t +++ b/t/db_dependent/NewsChannels.t @@ -141,11 +141,15 @@ is_deeply( idnew => $idnew1, branchname => "$addbra branch", branchcode => $addbra, + author_title => undef, + author_firstname => undef, + author_surname => undef, + newdate => $timestamp1, # this represents $lang => 1 in the hash # that's returned... which seems a little # redundant given that there's a perfectly # good 'lang' key in the hash - '' => 1, + '' => 1, }, 'got back expected news item via get_opac_new - ID 1' ); @@ -164,7 +168,11 @@ is_deeply( idnew => $idnew2, branchname => "$addbra branch", branchcode => $addbra, - '' => 1, + author_title => undef, + author_firstname => undef, + author_surname => $addbrwr, + newdate => $timestamp2, + '' => 1, }, 'got back expected news item via get_opac_new - ID 2' ); -- 1.7.10.4