Bug 10575 : GetOrdersByBiblionumber.t needs a database transaction
authorKenza Zaki <kenza.zaki@biblibre.com>
Thu, 11 Jul 2013 14:28:11 +0000 (16:28 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 25 Jul 2013 15:41:07 +0000 (12:41 -0300)
commita89699cc66ab6471d55d13d67da322e975dd5c57
treecd93ce941aed203dc4d6d8b6f43dc3e2329f9534
parent3b6abb0ea18720eef688241aa2c2e6399d922fa0
Bug 10575 : GetOrdersByBiblionumber.t needs a database transaction

Before this patch, the queries in GetOrdersByBiblionumber.t were commited in the database and have to be removed at the end.
This patch wraps tests in a database transaction.

Test Plan :
prove t/db_dependent/Acquisition/GetOrdersByBiblionumber.t
t/db_dependent/Acquisition/GetOrdersByBiblionumber.t .. ok
All tests successful.
Files=1, Tests=3,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.37 cusr  0.05 csys =  0.45 CPU)
Result: PASS

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Tests pass.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 45fafb31ce03244011513a3a758e28f8db9615a4)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
t/db_dependent/Acquisition/GetOrdersByBiblionumber.t