Bug 17733: Fix Members.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 6 Dec 2016 16:09:21 +0000 (17:09 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 16 Dec 2016 11:23:37 +0000 (11:23 +0000)
commit62074e39f0bbce1665f2b329beecc61fc55c994e
treeecdcb32acdd11ed49478c05cbe7b67cd76cccfa3
parent6b67f635b14b6ce1337785f65ef1dfaa4a36258e
Bug 17733: Fix Members.t

In some dirty DB (Jenkins), the borrowers.guarantorid field is not set
to a valid patron id.
That make some tests fail if we create a patron with that patron id.

In my DB, auto increment for borrowers is set to 52 before the tests
On the 4th run of the tests, some tests fail.
Before I got a patron with a guarantorid=112 (I let you do the math).

Test plan:
The easiest is to trust me

Todo: Add a FK!
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Opened a new report for special case: Bug 17759.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/Members.t