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

(-)a/t/db_dependent/Calendar.t (+8 lines)
Lines 3-8 use Modern::Perl; Link Here
3
use Test::More tests => 18;
3
use Test::More tests => 18;
4
4
5
use C4::Calendar;
5
use C4::Calendar;
6
use C4::Context;
7
8
my $dbh = C4::Context->dbh();
9
$dbh->{AutoCommit} = 0;
10
$dbh->{RaiseError} = 1;
11
12
$dbh->do("DELETE FROM calendar_events");
13
$dbh->do("DELETE FROM calendar_repeats");
6
14
7
my $new_holiday = { open_hour    => 0,
15
my $new_holiday = { open_hour    => 0,
8
                    open_minute  => 0,
16
                    open_minute  => 0,
(-)a/t/db_dependent/Holidays.t (-1 / +12 lines)
Lines 7-12 use DateTime::TimeZone; Link Here
7
use C4::Context;
7
use C4::Context;
8
use Test::More tests => 6;
8
use Test::More tests => 6;
9
9
10
use C4::Calendar;
11
10
BEGIN { use_ok('Koha::Calendar'); }
12
BEGIN { use_ok('Koha::Calendar'); }
11
13
12
my $dbh = C4::Context->dbh();
14
my $dbh = C4::Context->dbh();
Lines 14-19 my $dbh = C4::Context->dbh(); Link Here
14
$dbh->{AutoCommit} = 0;
16
$dbh->{AutoCommit} = 0;
15
$dbh->{RaiseError} = 1;
17
$dbh->{RaiseError} = 1;
16
18
19
my $new_holiday = { open_hour    => 0,
20
                    open_minute  => 0,
21
                    close_hour   => 0,
22
                    close_minute => 0,
23
                    title        => 'example week_day_holiday',
24
                    description  => 'This is an example week_day_holiday used for testing' };
25
26
# Weekly events
27
ModRepeatingEvent( 'MPL', 0, undef, undef, $new_holiday );
28
17
my $branchcode = 'MPL';
29
my $branchcode = 'MPL';
18
30
19
my $koha_calendar = Koha::Calendar->new( branchcode => $branchcode );
31
my $koha_calendar = Koha::Calendar->new( branchcode => $branchcode );
20
- 

Return to bug 8133