Bug 12470: adding unit tests for the routines CheckValidBarCode and CheckIfIssuedToPa...
authorYohann Dufour <dufour.yohann@gmail.com>
Tue, 24 Jun 2014 12:27:21 +0000 (14:27 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 23 Jul 2014 21:23:17 +0000 (21:23 +0000)
commit5058dc05d7558025d68b194e510d72029f0a005a
treef4d30d345a6e05628404ecf9ee26e55da16f2dcd
parent93a53cdded37a0807891b5375fd4513897bb874b
Bug 12470: adding unit tests for the routines CheckValidBarCode and CheckIfIssuedToPatron of the module C4::Circulation.pm

The routines CheckValidBarcode and CheckIfIssuedToPatron were not tested

Test plan:
1/ Apply the patch
2/ Execute : prove t/db_dependent/Circulation/CheckValidBarcode.t t/db_dependent/Circulation/CheckIfIssuedToPatron.t
3/ The result of the command has to be a success without error or warning :
t/db_dependent/Circulation/CheckValidBarcode.t ...... ok
t/db_dependent/Circulation/CheckIfIssuedToPatron.t .. ok
All tests successful.
Files=2, Tests=32,  3 wallclock secs ( 0.04 usr  0.01 sys +  2.88 cusr  0.17 csys =  3.10 CPU)
Result: PASS

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Patches squashed
Tests pass, no koha-qa errors

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Tests pass using sample data provided with Koha

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/db_dependent/Circulation/CheckIfIssuedToPatron.t [new file with mode: 0644]
t/db_dependent/Circulation/CheckValidBarcode.t [new file with mode: 0644]