Bug 15113: koha-rebuild-zebra should check USE_INDEXER_DAEMON and skip if enabled
[koha.git] / t / db_dependent / SIP_ILS.t
blobc9879dc16ee1ba50a2b724fa13a9f1f7c4a7d0b5
1 #!/usr/bin/perl
3 # This Koha test module is a stub!
4 # Add more tests here!!!
6 use strict;
7 use warnings;
9 use Test::More tests => 4;
11 BEGIN {
12 use_ok('C4::SIP::ILS');
15 my $transaction = C4::SIP::ILS::Transaction::RenewAll->new();
17 $transaction->patron(my $patron = C4::SIP::ILS::Patron->new(23529000120056));
19 ok(defined $patron, "patron code: 23529000120056 is valid");
21 my $transaction2 = C4::SIP::ILS::Transaction::RenewAll->new();
22 $transaction2->patron(my $patron2 = C4::SIP::ILS::Patron->new("ABCDE12345"));
24 #This test assumes that the patron code ABCDE12345 is invalid
25 ok(!defined $patron2, "patron code: ABCDE12345 is invalid");
27 ok($transaction->do_renew_all(), "items renewed correctly");