@@ -, +, @@ --- t/db_dependent/Holidays.t | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) --- a/t/db_dependent/Holidays.t +++ a/t/db_dependent/Holidays.t @@ -11,6 +11,11 @@ use Test::More tests => 12; BEGIN { use_ok('Koha::Calendar'); } BEGIN { use_ok('C4::Calendar'); } +my $dbh = C4::Context->dbh(); +# Start transaction +$dbh->{AutoCommit} = 0; +$dbh->{RaiseError} = 1; + my $branchcode = 'MPL'; my $koha_calendar = Koha::Calendar->new( branchcode => $branchcode ); @@ -45,6 +50,9 @@ is( $koha_calendar->is_holiday($monday), 0, 'Monday is not a closed day' ); is( $koha_calendar->is_holiday($christmas), 1, 'Christmas is a closed day' ); is( $koha_calendar->is_holiday($newyear), 1, 'New Years day is a closed day' ); +$dbh->do("DELETE FROM repeatable_holidays"); +$dbh->do("DELETE FROM special_holidays"); + my $custom_holiday = DateTime->new( year => 2013, month => 11, --