Bug 18826 - (QA Followup) Add mock SessionStorage to patrons.t
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
d5dc473382
commit
a696843f82
1 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,10 @@ my $builder = t::lib::TestBuilder->new();
|
||||||
|
|
||||||
$schema->storage->txn_begin;
|
$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';
|
$ENV{REMOTE_ADDR} = '127.0.0.1';
|
||||||
my $t = Test::Mojo->new('Koha::REST::V1');
|
my $t = Test::Mojo->new('Koha::REST::V1');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue