]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 3 Oct 2017 18:21:22 +0000 (15:21 -0300)
commitcb26219903c30ee6acce926d4a1bb6152f35668c
tree9349f2c13a058d47a0410aaba56a146abf9945e2
parent0b0059afb42aca25a3d10dfb372c2b26adcd6e41
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>
t/db_dependent/Circulation.t