[Koha-bugs] [Bug 17917] Jenkins tests failing because test suite not logged in user

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 16 20:28:41 CET 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17917

--- Comment #1 from M. Tompsett <mtompset at hotmail.com> ---
Created attachment 59026
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59026&action=edit
Bug 17917: Fix Jenkins tests failing on C4::Member.

C4/Members.pm line 502 references:
C4::Context->userenv->{'branch'}.
As the tests are not logged in userenv is not defined, and triggers test
failures.
This patches it by giving a reasonable branch value.

Test Plan
---------
1) prove t/Members/cardnumber.t
   -- fails
2) apply patch
3) prove t/Members/cardnumber.t
   -- passes
4) run koha qa test tools

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list