View | Details | Raw Unified | Return to bug 7904
Collapse All | Expand All

(-)a/t/db_dependent/SIP_ILS.t (-7 / +4 lines)
Lines 9-27 use warnings; Link Here
9
use Test::More tests => 4;
9
use Test::More tests => 4;
10
10
11
BEGIN {
11
BEGIN {
12
        use FindBin;
13
        use lib "$FindBin::Bin/../../C4/SIP";
14
        use_ok('C4::SIP::ILS');
12
        use_ok('C4::SIP::ILS');
15
};
13
};
16
14
17
my $transaction = ILS::Transaction::RenewAll->new();
15
my $transaction = C4::SIP::ILS::Transaction::RenewAll->new();
18
16
19
$transaction->patron(my $patron = ILS::Patron->new(23529000120056));
17
$transaction->patron(my $patron = C4::SIP::ILS::Patron->new(23529000120056));
20
18
21
ok(defined $patron, "patron code: 23529000120056 is valid");
19
ok(defined $patron, "patron code: 23529000120056 is valid");
22
20
23
my $transaction2 = ILS::Transaction::RenewAll->new();
21
my $transaction2 = C4::SIP::ILS::Transaction::RenewAll->new();
24
$transaction2->patron(my $patron2 = ILS::Patron->new("ABCDE12345"));
22
$transaction2->patron(my $patron2 = C4::SIP::ILS::Patron->new("ABCDE12345"));
25
23
26
#This test assumes that the patron code ABCDE12345 is invalid
24
#This test assumes that the patron code ABCDE12345 is invalid
27
ok(!defined $patron2, "patron code: ABCDE12345 is invalid");
25
ok(!defined $patron2, "patron code: ABCDE12345 is invalid");
28
- 

Return to bug 7904