View | Details | Raw Unified | Return to bug 19385
Collapse All | Expand All

(-)a/t/Calendar.t (-2 / +6 lines)
Lines 85-91 fixtures_ok [ Link Here
85
], "add fixtures";
85
], "add fixtures";
86
86
87
my $cache = Koha::Caches->get_instance();
87
my $cache = Koha::Caches->get_instance();
88
$cache->clear_from_cache( 'single_holidays') ;
88
$cache->clear_from_cache( 'single_holidays' ) ;
89
$cache->clear_from_cache( 'exception_holidays' ) ;
89
90
90
# 'MPL' branch is arbitrary, is not used at all but is needed for initialization
91
# 'MPL' branch is arbitrary, is not used at all but is needed for initialization
91
my $cal = Koha::Calendar->new( branchcode => 'MPL' );
92
my $cal = Koha::Calendar->new( branchcode => 'MPL' );
Lines 330-332 my $holiday_for_another_branch = DateTime->new( Link Here
330
    is ( $cal->is_holiday($holiday_for_another_branch), 1, 'Holiday defined for CPL should be defined as an holiday' );
331
    is ( $cal->is_holiday($holiday_for_another_branch), 1, 'Holiday defined for CPL should be defined as an holiday' );
331
}
332
}
332
333
333
- 
334
END {
335
    $cache->clear_from_cache( 'single_holidays' ) ;
336
    $cache->clear_from_cache( 'exception_holidays' ) ;
337
};

Return to bug 19385