[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:31:40 CET 2017


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

M. Tompsett <mtompset at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #59026|0                           |1
        is obsolete|                            |

--- Comment #2 from M. Tompsett <mtompset at hotmail.com> ---
Created attachment 59027
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59027&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/db_dependent/Holds.t
   -- fails
2) apply patch
3) prove t/db_dependent/Holds.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