[Koha-bugs] [Bug 15260] Option for extended loan with useDaysMode

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 24 20:01:47 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15260

Liz Rea <wizzyrea at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Needs Signoff               |Failed QA
                 CC|                            |wizzyrea at gmail.com

--- Comment #18 from Liz Rea <wizzyrea at gmail.com> ---
Hi, before I got into functional testing I tried the unit tests, and got a
failure:

kohadev-koha at kohadevbox:/home/vagrant/kohaclone$ prove -v
t/db_dependent/Circulation/CalcDateDue.t 
t/db_dependent/Circulation/CalcDateDue.t .. 
1..17
ok 1 - use C4::Circulation;
ok 2 - date expiry
ok 3 - date expiry with useDaysMode to noDays
ok 4 - date expiry should be 2013-01-01 -1 day
not ok 5 - date expiry should be 2013-01-01 -2 day

#   Failed test 'date expiry should be 2013-01-01 -2 day'
#   at t/db_dependent/Circulation/CalcDateDue.t line 80.
#          got: '2013-01-02T23:59:00'
#     expected: '2012-12-30T23:59:00'
ok 6 - date expiry ( 9 + 10 )
ok 7 - date expiry ( 9 + 5 )
ok 8 - useDaysMode = Dayweek, no closed days, issue date expiry ( start + 10 )
ok 9 - useDaysMode = Dayweek, no closed days, renewal date expiry ( start + 5 )
ok 10 - useDaysMode = Dayweek, closed on due date, 10 day loan (should not
trigger 7 day roll forward), issue date expiry ( start + 10  + 1 )
ok 11 - useDaysMode = Dayweek, closed on due date, 5 day renewal (should not
trigger 7 day roll forward), renewal date expiry ( start + 5  + 1 )
ok 12 - useDaysMode = Dayweek, closed on due date, 14 day loan (should trigger
7 day roll forward), issue date expiry ( start + 21 )
ok 13 - useDaysMode = Dayweek, closed on due date, 7 day renewal (should
trigger 7 day roll forward), renewal date expiry ( start + 14 )
ok 14 - useDaysMode = Dayweek, closed on due date and two subequent due dates,
14 day loan (should trigger 2 x 7 day roll forward), issue date expiry ( start
+ 28 )
ok 15 - useDaysMode = Dayweek, closed on due date and three subsequent due
dates, 7 day renewal (should trigger 3 x 7 day roll forward), issue date expiry
( start + 28 )
ok 16 - useDaysMode = Dayweek, due on Saturday, closed on Saturdays, 14 day
loan (should trigger 1 day roll forward), issue date expiry ( start + 15 )
ok 17 - useDaysMode = Dayweek, due on Saturday, closed on Saturdays, 7 day
renewal (should trigger 1 day roll forward), issue date expiry ( start + 8 )
# Looks like you failed 1 test of 17.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/17 subtests 

Test Summary Report
-------------------
t/db_dependent/Circulation/CalcDateDue.t (Wstat: 256 Tests: 17 Failed: 1)
  Failed test:  5
  Non-zero exit status: 1
Files=1, Tests=17,  3 wallclock secs ( 0.03 usr  0.01 sys +  1.45 cusr  0.52
csys =  2.01 CPU)
Result: FAIL

I have decided not to continue on with functional testing until the tests pass.

Cheers,
Liz

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list