From ca6bace0de3bf36465492c723ff039156ea5f3c6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 6 May 2019 13:50:26 -0500 Subject: [PATCH] Bug 22812: Add tests for checkrouting Signed-off-by: Liz Rea Signed-off-by: Marcel de Rooy Signed-off-by: Michal Denar Signed-off-by: Michal Denar --- t/db_dependent/Serials.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Serials.t b/t/db_dependent/Serials.t index 8956514bfd..b096894ff8 100755 --- a/t/db_dependent/Serials.t +++ b/t/db_dependent/Serials.t @@ -18,7 +18,7 @@ use Koha::DateUtils; use Koha::Acquisition::Booksellers; use t::lib::Mocks; use t::lib::TestBuilder; -use Test::More tests => 46; +use Test::More tests => 47; BEGIN { use_ok('C4::Serials'); @@ -262,6 +262,8 @@ subtest 'test_updateClaim' => sub { }; is(C4::Serials::check_routing(), undef, 'test checking route'); +is(C4::Serials::check_routing($subscriptionid), 0, 'There should not have any routing list for the subscription'); +# TODO really test this check_routing subroutine is(C4::Serials::addroutingmember(),undef, 'test adding route member'); -- 2.11.0