Permalink
Browse files

Bug 8418 - correctly mock test data

  • Loading branch information...
dpavlin committed Jul 14, 2012
1 parent 43236cc commit 77031f059e066229175975d8a8a45f587de40f9d
Showing with 3 additions and 3 deletions.
  1. +3 −3 Koha/Calendar.pm
View
@@ -193,17 +193,17 @@ sub hours_between {
sub _mockinit {
my $self = shift;
$self->{weekly_closed_days} = [ 1, 0, 0, 0, 0, 0, 0 ]; # Sunday only
- $self->{day_month_closed_days} = { 6 => { 16 => 1, } };
+ $self->{day_month_closed_days} = { 16 => { 6 => 1, } };
my $dates = [];
- $self->{special_holidays} =
- DateTime::Set->from_datetimes( dates => $dates );
my $special = DateTime->new(
year => 2011,
month => 6,
day => 1,
time_zone => 'Europe/London',
);
push @{$dates}, $special;
+ $self->{special_holidays} =
+ DateTime::Set->from_datetimes( dates => $dates );
$self->{days_mode} = 'Calendar';
return;
}

0 comments on commit 77031f0

Please sign in to comment.