Bug 22812: Add tests for checkrouting
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 6 May 2019 18:50:26 +0000 (13:50 -0500)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 14 May 2019 19:32:07 +0000 (19:32 +0000)
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
t/db_dependent/Serials.t

index 8956514..b096894 100755 (executable)
@@ -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');