Lines 3-9
Link Here
|
3 |
use strict; |
3 |
use strict; |
4 |
use warnings; |
4 |
use warnings; |
5 |
use DateTime; |
5 |
use DateTime; |
6 |
use Test::More tests => 21; |
6 |
use Test::More tests => 23; |
7 |
use Koha::DateUtils; |
7 |
use Koha::DateUtils; |
8 |
|
8 |
|
9 |
BEGIN { |
9 |
BEGIN { |
Lines 103-108
$ret = $cal->addDate( $test_dt, 7, 'days' );
Link Here
|
103 |
cmp_ok( $ret->ymd(), 'eq', '2012-07-30', 'Add 7 days Days mode' ); |
103 |
cmp_ok( $ret->ymd(), 'eq', '2012-07-30', 'Add 7 days Days mode' ); |
104 |
$cal->set_daysmode('Calendar'); |
104 |
$cal->set_daysmode('Calendar'); |
|
|
105 |
# see bugzilla #8966 |
106 |
is( $cal->is_holiday($later_dt), 0, 'is holiday for the next test' ); |
107 |
cmp_ok( $later_dt, 'eq', '2012-09-17T17:30:00', 'Date should be the same after is_holiday' ); |
108 |
|
105 |
# example tests for bug report |
109 |
# example tests for bug report |
106 |
$cal->clear_weekly_closed_days(); |
110 |
$cal->clear_weekly_closed_days(); |
107 |
|
111 |
|
108 |
- |
|
|