Koha/t/db_dependent/SIP_ILS.t
Chris Cormack 181f3b36ee Bug 5327 : Removing a broken test
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
2012-02-13 15:04:43 +01:00

29 lines
740 B
Perl
Executable file

#!/usr/bin/perl
#
# This Koha test module is a stub!
# Add more tests here!!!
use strict;
use warnings;
use Test::More tests => 4;
BEGIN {
use FindBin;
use lib "$FindBin::Bin/../../C4/SIP";
use_ok('C4::SIP::ILS');
};
my $transaction = ILS::Transaction::RenewAll->new();
$transaction->patron(my $patron = ILS::Patron->new(23529000120056));
ok(defined $patron, "patron code: 23529000120056 is valid");
my $transaction2 = ILS::Transaction::RenewAll->new();
$transaction2->patron(my $patron2 = ILS::Patron->new("ABCDE12345"));
#This test assumes that the patron code ABCDE12345 is invalid
ok(!defined $patron2, "patron code: ABCDE12345 is invalid");
ok($transaction->do_renew_all(), "items renewed correctly");