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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 24 May 2019 13:50:03 +0000 (14:50 +0100)
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>
(cherry picked from commit 0759811ab629e8215ee270b4ec920f71d9bc0d25)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

t/db_dependent/Serials.t

index 00d2ee6..1023413 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');