From 9043d377a6ee1584ecf76850383c6abe5d26ab8e Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Wed, 14 Aug 2019 04:01:02 +0000 Subject: [PATCH] Bug 22188: Tests This patch fixes the t/db_dependent/Serials.t test which fails with this feature (without this fix). Ensure all other tests that use NewSubscription, ModSubscription, GetNextSeq, GetSeq still pass. db_dependent/Acquisition/OrderFromSubscription.t db_dependent/Bookseller.t db_dependent/Koha/Acquisition/Booksellers.t db_dependent/Letters.t db_dependent/Serials.t db_dependent/Serials/Claims.t db_dependent/Serials/ReNewSubscription.t db_dependent/Serials_2.t db_dependent/Serials/Frequency.t db_dependent/Serials/Numberpattern.t db_dependent/Serials/GetNextSeq.t Serials/GetNextSeq.t Sponsored-by: Brimbank Libraries Australia --- t/db_dependent/Serials.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Serials.t b/t/db_dependent/Serials.t index 735af75..fe8e8a4 100755 --- a/t/db_dependent/Serials.t +++ b/t/db_dependent/Serials.t @@ -223,7 +223,8 @@ is(C4::Serials::GetLatestSerials(), undef, 'test getting lastest serials'); is(C4::Serials::GetNextSeq(), undef, 'test getting next seq when you enter nothing'); -is(C4::Serials::GetSeq(), undef, 'test getting seq when you enter nothing'); +is(C4::Serials::GetSeq(), 'pubdate', 'test getting seq when you enter nothing'); +# no input means assume using publication date as numbering pattern is(C4::Serials::CountSubscriptionFromBiblionumber(), undef, 'test counting subscription when nothing is entered'); -- 2.1.4