Lines 1-5
Link Here
|
1 |
#!/usr/bin/perl |
1 |
#!/usr/bin/perl |
2 |
|
2 |
|
|
|
3 |
# Tests for C4::SIP::ILS |
4 |
# Please help to extend them! |
5 |
|
3 |
# This file is part of Koha. |
6 |
# This file is part of Koha. |
4 |
# |
7 |
# |
5 |
# Koha is free software; you can redistribute it and/or modify it |
8 |
# Koha is free software; you can redistribute it and/or modify it |
Lines 26-41
BEGIN {
Link Here
|
26 |
my $class = 'C4::SIP::ILS'; |
29 |
my $class = 'C4::SIP::ILS'; |
27 |
my $institution = { id => 'CPL', }; |
30 |
my $institution = { id => 'CPL', }; |
28 |
|
31 |
|
29 |
my $ils = $class->new($institution); |
32 |
my $ils = $class->new( $institution ); |
30 |
|
33 |
|
31 |
isa_ok( $ils, $class ); |
34 |
isa_ok( $ils, $class ); |
32 |
|
35 |
|
33 |
# Check all methods required for interface are there |
36 |
# Check all methods required for interface are there |
34 |
# NB the mon_block routines are not here but Sip.pm thinks it can call them |
37 |
my @methods = qw( |
35 |
my @methods = ( |
38 |
find_patron find_item checkout_ok checkin_ok offline_ok status_update_ok |
36 |
qw( find_patron find_item checkout_ok checkin_ok offline_ok status_update_ok |
39 |
offline_ok checkout checkin end_patron_session pay_fee add_hold cancel_hold |
37 |
offline_ok checkout checkin end_patron_session pay_fee add_hold cancel_hold |
40 |
alter_hold renew renew_all |
38 |
alter_hold renew renew_all) |
|
|
39 |
); |
41 |
); |
40 |
|
42 |
|
41 |
can_ok( $ils, @methods ); |
43 |
can_ok( $ils, @methods ); |
42 |
- |
|
|