From d612184ac78dd5c984d060130765ce1f99962d6c 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 --- 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.11.0