Bug 16134

Summary: t::lib::Mocks::mock_preference should be case-insensitive
Product: Koha Reporter: Julian Maurice <julian.maurice>
Component: Test SuiteAssignee: Julian Maurice <julian.maurice>
Status: CLOSED FIXED QA Contact: Galen Charlton <gmcharlt>
Severity: normal    
Priority: P5 - low CC: brendan, jonathan.druart
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 16134: t::lib::Mocks::mock_preference should be case-insensitive
Bug 16134: t::lib::Mocks::mock_preference should be case-insensitive
[PASSED QA] Bug 16134: t::lib::Mocks::mock_preference should be case-insensitive

Description Julian Maurice 2016-03-23 13:11:56 UTC
Since bug 11998, some tests are failing (well at least one: t/db_dependent/Auth_with_cas.t)

This is due to the "case-sensitivity" of mock_preference. mock_preference should be case-insensitive, like C4::Context::preference.
Comment 1 Julian Maurice 2016-03-23 13:12:41 UTC Comment hidden (obsolete)
Comment 2 Jonathan Druart 2016-03-23 15:29:33 UTC Comment hidden (obsolete)
Comment 3 Katrin Fischer 2016-03-23 21:35:39 UTC
Created attachment 49466 [details] [review]
[PASSED QA] Bug 16134: t::lib::Mocks::mock_preference should be case-insensitive

Test plan:
1. prove t/db_dependent/Auth_with_cas.t => FAIL
2. Apply patch
3. prove t/db_dependent/Auth_with_cas.t => SUCCESS

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 4 Brendan Gallagher 2016-03-24 15:37:04 UTC
Pushed to Master - Should be in the May 2016 release.  Thanks!
Comment 5 Julian Maurice 2016-04-07 07:46:33 UTC
Patch pushed to 3.22.x, will be in 3.22.6