Bug 18826 - (QA Followup) Add mock SessionStorage to patrons.t
authorNick Clemens <nick@bywatersolutions.com>
Fri, 21 Jul 2017 12:07:19 +0000 (12:07 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 24 Jul 2017 16:14:55 +0000 (13:14 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/api/v1/patrons.t

index 705a2f8..909e36e 100644 (file)
@@ -33,6 +33,10 @@ my $builder = t::lib::TestBuilder->new();
 
 $schema->storage->txn_begin;
 
+# FIXME: sessionStorage defaults to mysql, but it seems to break transaction handling
+# this affects the other REST api tests
+t::lib::Mocks::mock_preference( 'SessionStorage', 'tmp' );
+
 $ENV{REMOTE_ADDR} = '127.0.0.1';
 my $t = Test::Mojo->new('Koha::REST::V1');