[Koha-bugs] [Bug 9180] Default rules are not always used for overdues

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Jul 6 22:52:49 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9180

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Signed Off                  |Failed QA

--- Comment #23 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Doing some first tests on this, noticing a few things:

1) The unit tests (yay!) are in a new file Overdues.pl - I think they need to
be integrated into Overdues.t or the file should be renamed to be a .t file.

2) While t/db_dependent/Overdues.t passes with the tests, Ovedues.pl does not:

bumblebee:~/kohaclone (19-9180-defaultoverduerules) $ perl
t/db_dependent/Overdues.pl 
1..4
not ok 1 - If a default rule exists, all branches should be returned
#   Failed test 'If a default rule exists, all branches should be returned'
#   at t/db_dependent/Overdues.pl line 26.
#     Structures begin differing at:
#          $got->[0] = 'TPL'
#     $expected->[0] = 'FRL'
not ok 2 - If a default rule exists and a specific rule exists, all branches
should be returned
#   Failed test 'If a default rule exists and a specific rule exists, all
branches should be returned'
#   at t/db_dependent/Overdues.pl line 36.
#     Structures begin differing at:
#          $got->[0] = 'RPL'
#     $expected->[0] = 'FRL'
ok 3 - If only a specific rule exist, only 1 branch should be returned
ok 4 - If only 2 specific rules exist, 2 branches should be returned
# Looks like you failed 2 tests of 4.

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


More information about the Koha-bugs mailing list