]> 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, 16 Jan 2015 23:39:47 +0000 (12:39 +1300)
commitb8ef9e288548ea5247c120df4c8012f0df7a7be4
tree46bfd1179a37883d64e3ff6d9e13d06e714fff78
parentc5d177b82e94ed36c25fb51110ca1e10ce1d5b29
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