Bug 13799: (QA followup) make tests use random data
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 24 Sep 2015 17:21:55 +0000 (14:21 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 4 Nov 2015 16:47:33 +0000 (13:47 -0300)
commit5533d658018553f2205d4d8836541a3efa6a665b
tree8dc81373c7958d8ea90a47e07a2f3695daac457f
parent631694cd96bb3f7e759dc593bd0358a0efaf1304
Bug 13799: (QA followup) make tests use random data

With the introduction of TestBuilder there's no need to
rely on existing data on the DB (the original patch relies
on categories and branches already existing).

This patch creates a random branch, category and two borrowers
with the fixed data that is needed for the tests. It adjusts
the tests to use the randomized data instead of the previously
fixed one.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
The feature works as expected and all tests passes. koha-qa.pl too.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
t/db_dependent/api/v1/borrowers.t