]> git.koha-community.org Git - koha.git/commit
Bug 10683: (follow-up) improvements to the unit tests
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 19 Sep 2013 14:20:28 +0000 (16:20 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 9 Oct 2013 03:51:55 +0000 (03:51 +0000)
commit5b74a81e3d1dcb3e8a351126503605baa20241a8
tree3bce2deda3d0da146c9c8eeee1385f2888d7e1cb
parent175cdb44f953044878194e3a0fb9193e0142db10
Bug 10683: (follow-up) improvements to the unit tests

The borrowers table needs to be cleared after the items table
(last_returned_by column).

Some checks were missing for GetRenewCount and AddRenewal.

Now the tests simulated a renewal for a item and check that the renews
left is decremented.

Moreover the issuingrules tables should be cleared and filled with known
values.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/db_dependent/Circulation_Branch.t
t/db_dependent/Circulation_issue.t