Koha/t/lib/KohaTest/Calendar.pm
Andrew Moore c6d5b75d6d Bug 1953: adding tests and 2 corrections for C4::Calendar
In the course of writing tests for C4::Calendar, I found two bugs and am fixing them here.
One is a documentation bug.
The other prevented C4::Calendar::insert_exception_holiday from working. I was unable
to find anywhere else in the code that depended on the broken behaviour.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-05-13 17:41:20 -05:00

36 lines
873 B
Perl

package KohaTest::Calendar;
use base qw( KohaTest );
use strict;
use warnings;
use Test::More;
use C4::Calendar;
sub testing_class { 'C4::Calendar' };
sub methods : Test( 1 ) {
my $self = shift;
my @methods = qw( new
_init
change_branchcode
get_week_days_holidays
get_day_month_holidays
get_exception_holidays
get_single_holidays
insert_week_day_holiday
insert_day_month_holiday
insert_single_holiday
insert_exception_holiday
delete_holiday
isHoliday
addDate
daysBetween
);
can_ok( $self->testing_class, @methods );
}
1;