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)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 14 Jul 2014 11:51:18 +0000 (08:51 -0300)
commite1e0ac329c6fff33b47254a415c99e8048cebd91
tree8dfb97f3245b80dbdb6d43bc32bf53224da4a1d4
parentab3bce193f823f426a36e348b00153888c61f281
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>
t/db_dependent/Circulation/CheckIfIssuedToPatron.t [new file with mode: 0644]
t/db_dependent/Circulation/CheckValidBarcode.t [new file with mode: 0644]