Revert "Bug 5327: Added unit test for C4/SIP/ILS/Transaction/RenewAll.pm"

This reverts commit 06c822c37c.
(cherry picked from commit 8df873c1a2)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
Paul Poulain 2011-12-15 16:14:35 +01:00 committed by Chris Nighswonger
parent 9741b63314
commit 2f95419c36
1 changed files with 2 additions and 15 deletions

View File

@ -6,24 +6,11 @@
use strict;
use warnings;
use Test::More tests => 4;
use Test::More tests => 1;
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");