From 5017931c5a414f3f2267127309c3b1c031aec770 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 26 Jul 2017 16:39:17 -0300 Subject: [PATCH] Bug 17829: Execute rollingloans tests in a transaction Signed-off-by: Jonathan Druart --- t/db_dependent/rollingloans.t | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/rollingloans.t b/t/db_dependent/rollingloans.t index 6be21101c1..75ec17f678 100644 --- a/t/db_dependent/rollingloans.t +++ b/t/db_dependent/rollingloans.t @@ -1,7 +1,5 @@ -use strict; -use warnings; -use 5.010; +use Modern::Perl; use C4::Context; use C4::Circulation; use C4::Members; @@ -11,6 +9,10 @@ use Koha::Patrons; use t::lib::TestBuilder; use Test::More tests => 8; + +my $schema = Koha::Database->new->schema; +$schema->storage->txn_begin; + C4::Context->_new_userenv(1234567); C4::Context->set_userenv(91, 'CLIstaff', '23529001223661', 'CPL', 'CPL', 'CPL', '', 'cc@cscnet.co.uk'); -- 2.39.5