Bugzilla – Attachment 51257 Details for
Bug 16452
PatronLists.t raises a warning
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 16452: Remove the warnings raised by PatronLists.t
PASSED-QA-Bug-16452-Remove-the-warnings-raised-by-.patch (text/plain), 1.14 KB, created by
Katrin Fischer
on 2016-05-05 19:53:02 UTC
(
hide
)
Description:
[PASSED QA] Bug 16452: Remove the warnings raised by PatronLists.t
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2016-05-05 19:53:02 UTC
Size:
1.14 KB
patch
obsolete
>From 10de9cba5fda18d37fc9bdb60bf05d56b0a37ee1 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 5 May 2016 15:36:50 +0100 >Subject: [PATCH] [PASSED QA] Bug 16452: Remove the warnings raised by > PatronLists.t >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >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 <veron@veron.ch> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > 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 54a153a..7b8fcf2 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(); >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16452
:
51240
|
51245
| 51257