From f0983f0570691a2b196fdc7539f5aaf85972c449 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 5 May 2016 15:36:50 +0100 Subject: [PATCH] Bug 16452: Remove the warnings raised by PatronLists.t MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We need to define a userenv to get rid of the warnings Test plan: prove t/db_dependent/PatronLists.t should not return any warnings Signed-off-by: Marc Véron Signed-off-by: Katrin Fischer Signed-off-by: Brendan Gallagher --- t/db_dependent/PatronLists.t | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/db_dependent/PatronLists.t b/t/db_dependent/PatronLists.t index 54a153a66f..7b8fcf22a2 100755 --- a/t/db_dependent/PatronLists.t +++ b/t/db_dependent/PatronLists.t @@ -9,6 +9,9 @@ BEGIN { use_ok('Koha::List::Patron'); } +C4::Context->_new_userenv('DUMMY SESSION'); +C4::Context->set_userenv(0,0,0,'firstname','surname', 'BRANCH1', 'Library 1', 0, ', '); + my $dbh = C4::Context->dbh; my $sth = $dbh->prepare("SELECT * FROM borrowers ORDER BY RAND() LIMIT 10"); $sth->execute(); -- 2.39.2