[Koha-bugs] [Bug 8110] Fines accruing on closed days
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jun 19 15:54:51 CEST 2012
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8110
Tomás Cohen Arazi <tomascohen at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tomascohen at gmail.com
--- Comment #10 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
I've set a test install with this settings:
mysql> SELECT * FROM repeatable_holidays;
+----+------------+---------+------+-------+-------+----------------+
| id | branchcode | weekday | day | month | title | description |
+----+------------+---------+------+-------+-------+----------------+
| 2 | TEST | 0 | NULL | NULL | | Sundays |
| 3 | TEST | NULL | 1 | 1 | | New Year's Day |
| 4 | TEST | NULL | 25 | 12 | | Christmas |
+----+------------+---------+------+-------+-------+----------------+
3 rows in set (0.00 sec)
And got:
tomas at tomas-desktop:~/Work/koha/devel/koha-community-src$ perl
t/db_dependent/Holidays.t
1..8
ok 1 - use Koha::Calendar;
ok 2 - use C4::Calendar;
ok 3 - Koha::Calendar class returned isa Koha::Calendar
ok 4 - C4::Calendar class returned isa C4::Calendar
not ok 5 - Sunday is a closed day
# Failed test 'Sunday is a closed day'
# at t/db_dependent/Holidays.t line 42.
# got: '0'
# expected: '1'
ok 6 - Monday is not a closed day
not ok 7 - Christmas is a closed day
# Failed test 'Christmas is a closed day'
# at t/db_dependent/Holidays.t line 44.
# got: '0'
# expected: '1'
not ok 8 - New Years day is a closed day
# Failed test 'New Years day is a closed day'
# at t/db_dependent/Holidays.t line 45.
# got: '0'
# expected: '1'
# Looks like you failed 3 tests of 8.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list