]> 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)
committerMason James <mtj@kohaaloha.com>
Fri, 23 Jan 2015 07:07:44 +0000 (20:07 +1300)
commit62a253fc44583125cff03cbbe53fe6525ff23683
treef2431edf79cbecf6df0d4defc09c6864e32fdfaa
parente7eacdfaf5e5cab1a40841e2f5bdc91cca3e53c6
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: Mason James <mtj@kohaaloha.com>
t/db_dependent/Members.t