Bug 16406

Summary: Fix Context.t tests 27, 37 and sysprefs.t
Product: Koha Reporter: Marcel de Rooy <m.de.rooy>
Component: Test SuiteAssignee: Chris Cormack <chris>
Status: CLOSED FIXED QA Contact: Galen Charlton <gmcharlt>
Severity: minor    
Priority: P5 - low CC: jonathan.druart
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16104
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Marcel de Rooy 2016-04-30 14:18:22 UTC
Resolves:
t/db_dependent/Context.t (Wstat: 512 Tests: 40 Failed: 2)
  Failed tests:  27, 37
  Non-zero exit status: 2
Comment 1 Marcel de Rooy 2016-04-30 14:33:01 UTC
This may not be that easy.
If you did not enable a cache and Koha cannot initialize memcached somehow, this test fails.
Comment 2 Marcel de Rooy 2016-04-30 15:04:18 UTC
Similar problem here:

#   Failed test 'caching preferences'
#   at t/db_dependent/sysprefs.t line 59.
#          got: undef
#     expected: 'def'
# Looks like you failed 1 test of 8.
Comment 3 Jonathan Druart 2016-05-02 09:58:38 UTC
It's a specific case, maybe we should skip the caching tests if no cache is enabled.
Comment 4 Marcel de Rooy 2016-05-02 11:14:38 UTC
The revert on bug 16104 will resolve this issue too.