]> git.koha-community.org Git - koha.git/commit
Bug 19403: Prevent Circulation.t to fail randomly
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 3 Oct 2017 17:16:02 +0000 (14:16 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 27 Oct 2017 13:02:21 +0000 (15:02 +0200)
commitec06d9daa836005470c47d40ec2eba8d86910895
tree0f70534b8ea9308874db81c2bb30c447f9ace4be
parent958e6b712216dae3011ddcc93780859bcfd791f7
Bug 19403: Prevent Circulation.t to fail randomly

Due to the number of test cases handle by CanBookBeIssued, Circulation.t
fails randomly. To prevent that it is better to set some values.
For instance if the patron is a statistical patron (category_type=X),
the subroutine will return a STATS flag.

This patch also adds a subroutine to the test file to display the keys
of $error, $question and $alert set by CanBookBeIssued.
It will be easier to track other random failures.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit cb26219903c30ee6acce926d4a1bb6152f35668c)
t/db_dependent/Circulation.t