Bug 25850: Add tests for weekday holidays
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 4ed4e468d2)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
f63c82a30f
commit
e6522ea63c
|
|
@ -302,7 +302,7 @@ subtest 'is_holiday' => sub {
|
|||
|
||||
my $library = $builder->build_object( { class => 'Koha::Libraries' } );
|
||||
|
||||
my $day = dt_from_string();
|
||||
my $day = DateTime->now();
|
||||
my $dow = scalar $day->day_of_week;
|
||||
$dow = 0 if $dow == 7;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue