Bug 11587 - IsSuperLibrarian generates warnings (UT)
authorMark Tompsett <mtompset@hotmail.com>
Tue, 21 Jan 2014 05:34:43 +0000 (00:34 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 10 Mar 2014 15:55:12 +0000 (15:55 +0000)
commit8ee0bc049a183e795fc37608a4b3790d4aef2267
treea50d40168f7777394bb5d5c50179ead1d09a06b5
parent547946894833155f4b61be6d0544a6c195744395
Bug 11587 - IsSuperLibrarian generates warnings (UT)

Simply viewing OPAC detail triggers a modulus warning entry.
This first patch adds two test cases to t/Context.t to test for
this situation.

TEST PLAN
---------
1) Apply this patch (to upgrade t/Context.t)
2) prove -v t/Context.t
-- Tests 7 and 8 will fail
3) Apply main patch (to amend C4/Context.pm)
4) prove -v t/Context.t
-- All tests will succeed

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/Context.t