Koha/t/db_dependent/Circulation
Tomas Cohen Arazi 9c20a3f797 Bug 15160: GetTopIssues.t should create random data
This patch refactors t/db_dependent/Circulation/GetTopIssues.t so it
creates its own data with random values. It does so by replacing (legacy)
SQL inserts and fixed value data inserting by TestBuilder generated data.

There is no expected behaviour change.

To test:
- Create an itemtyp directly on your DB with GTI_I_TEST as its itemtype
  > INSERT INTO itemtypes (itemtype) VALUES ('GTI_I_TEST');
- Run:
  $ prove t/db_dependent/Circulation/GetTopIssues.t
=> FAIL: The insert line fails
- Apply the patch
- Run:
  $ prove t/db_dependent/Circulation/GetTopIssues.t
=> SUCCESS: tests pass due to random data usage.
- Sign off

Signed-off-by: Frederic Demians <f.demians@tamil.fr>
  Test plan produces the expected result, failing, then OK.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2015-11-10 09:27:55 -03:00
..
IssuingRules Bug 14878: Tests - Create the branchcodes when needed 2015-11-06 15:51:51 -03:00
AnonymiseIssueHistory.t Bug 15081: (followup) Make test files using TestBuilder handle their transactions 2015-11-04 12:32:57 -03:00
CheckIfIssuedToPatron.t Bug 12470: (followup) License statement missing 2014-07-14 08:57:06 -03:00
CheckValidBarcode.t Bug 12470: (followup) License statement missing 2014-07-14 08:57:06 -03:00
GetIssues.t Bug 11201: Add a in-house use list pages 2015-03-31 11:30:55 -03:00
GetTopIssues.t Bug 15160: GetTopIssues.t should create random data 2015-11-10 09:27:55 -03:00
IsItemIssued.t Bug 14878: Tests - Create the branchcodes when needed 2015-11-06 15:51:51 -03:00
MarkIssueReturned.t Bug 9942: Make Koha fails if privacy is not respected 2015-07-07 14:52:32 -03:00
Returns.t Bug 14878: Tests - Create the branchcodes when needed 2015-11-06 15:51:51 -03:00
TooMany.t Bug 14045: Fix failing tests if issuing rules exist 2015-11-06 12:01:14 -03:00