]> git.koha-community.org Git - koha.git/commit
Bug 12868: Improving t/db_dependent/Member.t
authorMark Tompsett <mtompset@hotmail.com>
Wed, 3 Sep 2014 23:09:46 +0000 (19:09 -0400)
committerChris Cormack <chris@bigballofwax.co.nz>
Thu, 15 Jan 2015 00:36:34 +0000 (13:36 +1300)
commit30c5d74805a3e587aa372f7c0b429e2c1e7e4300
tree89efcf8c6b28efc0102423b7a5ec9571996c5440
parent278e76fb8a651d518833ed2b34fad7f1d3f7f5dd
Bug 12868: Improving t/db_dependent/Member.t

The mock function of GetMemberAccountRecord did not properly
account for the undef case. This was corrected.

Then all 4 combinations of borrower number and card number being
defined or not were called to GetMemberDetail.

The problematic test case is where the borrower number is
undefined and the cardnumber is defined.

TEST PLAN
---------
1) Apply just this first patch.
2) prove -v t/db_dependent/Member.t
   -- This should fail!
3) Run koha QA test tools.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit e6dbae9dbf8ce506d6692cb7abace9c9b3175e3e)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
t/db_dependent/Members.t