From b4a64715e0eb797351536bb68fbc94bb8dbf028a Mon Sep 17 00:00:00 2001 From: Duncan Tyler Date: Thu, 15 Dec 2011 16:22:03 +1300 Subject: [PATCH] Moving SIP_ILS.t to db_dependent --- t/SIP_ILS.t | 29 ----------------------------- t/db_dependent/SIP_ILS.t | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 29 deletions(-) delete mode 100755 t/SIP_ILS.t create mode 100755 t/db_dependent/SIP_ILS.t diff --git a/t/SIP_ILS.t b/t/SIP_ILS.t deleted file mode 100755 index 32ec7d4..0000000 --- a/t/SIP_ILS.t +++ /dev/null @@ -1,29 +0,0 @@ -#!/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"); diff --git a/t/db_dependent/SIP_ILS.t b/t/db_dependent/SIP_ILS.t new file mode 100755 index 0000000..32ec7d4 --- /dev/null +++ b/t/db_dependent/SIP_ILS.t @@ -0,0 +1,29 @@ +#!/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"); -- 1.7.5.4