Bug 5327 shifting database dependent modules and scripts to t/db_dependent
[koha.git] / t / db_dependent / lib / KohaTest / Calendar.pm
1 package KohaTest::Calendar;
2 use base qw( KohaTest );
3
4 use strict;
5 use warnings;
6
7 use Test::More;
8
9 use C4::Calendar;
10 sub testing_class { 'C4::Calendar' };
11
12
13 sub methods : Test( 1 ) {
14     my $self = shift;
15     my @methods = qw( new
16                       get_week_days_holidays
17                       get_day_month_holidays
18                       get_exception_holidays
19                       get_single_holidays
20                       insert_week_day_holiday
21                       insert_day_month_holiday
22                       insert_single_holiday
23                       insert_exception_holiday
24                       delete_holiday
25                       isHoliday
26                       addDate
27                       daysBetween
28                 );
29     
30     can_ok( $self->testing_class, @methods );    
31 }
32
33 1;
34