]> git.koha-community.org Git - koha.git/commit
Bug 12457: Removal warning in t/db_dependent/Members.t
authorYohann Dufour <dufour.yohann@gmail.com>
Fri, 20 Jun 2014 12:31:53 +0000 (14:31 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 30 Jul 2014 12:50:20 +0000 (09:50 -0300)
commit093ba1d9b7c8e15a8ee536c8f4aacbee10348065
tree88b565b0c9dcad450e98966f6a61d3e2405a7131
parente65121e41599c3f809d07ee82935135aa49fe380
Bug 12457: Removal warning in t/db_dependent/Members.t

When I execute prove t/db_dependent/Members.t, this warning appears twice :
"Argument "Test" isn't numeric in modulus (%) at /home/yohann/koha/C4/Context.pm line 1256."

The warning is due to a invalid use of the routine set_userenv

Test plan:
1/ Execute : prove t/db_dependent/Members.t
2/ The warning appears twice :
"Argument "Test" isn't numeric in modulus (%) at /home/yohann/koha/C4/Context.pm line 1256."
3/ Apply the patch
4/ Execute : prove t/db_dependent/Members.t
5/ The result has to be a success without error or warning :
t/db_dependent/Members.t .. ok
All tests successful.
Files=1, Tests=26,  2 wallclock secs ( 0.04 usr  0.01 sys +  1.50 cusr  0.08 csys =  1.63 CPU)
Result: PASS

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
All new and old tests pass now.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
t/db_dependent/Members.t