]> git.koha-community.org Git - koha.git/commit
Bug 10710: add unit tests for OfflineOperation's routines in C4/Circulation.pm
authorKenza Zaki <kenza.zaki@biblibre.com>
Mon, 12 Aug 2013 12:16:46 +0000 (14:16 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 28 Aug 2013 14:52:37 +0000 (14:52 +0000)
commit87890bc366d566685f1484cb476200f5ca302e91
tree671f2cb915b028f18258254d5ff956db37431db9
parentc191532cc0c908ccbd5019a0d49c721e5702e7a6
Bug 10710: add unit tests for OfflineOperation's routines in C4/Circulation.pm

This patch test AddOfflineOperation,GetOfflineOperation and
DeleteOfflineOperation in C4/Circulation.pm.

The tests are wrapped in a transaction.

Note: Currently, GetOfflineOperations is not tested because we cannot
mock C4::Context->userenv in unit tests

To test:

prove t/db_dependent/Circulation_OfflineOperation.t
t/db_dependent/Circulation_OfflineOperation.t .. ok
All tests successful.
Files=1, Tests=7, 19 wallclock secs ( 0.01 usr  0.01 sys +  0.33 cusr  0.02 csys =  0.37 CPU

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/db_dependent/Circulation_OfflineOperation.t [new file with mode: 0644]