Item10516: UploadScript tests are not locale-aware
Priority: Normal
Current State: Closed
Released In: 1.1.4
Target Release: patch
Applies To: Engine
Component:
Branches:
If you run your development Foswiki with locale enabled, then 2 tests will fail, because they do not take into account that sanitizing attachment names is locale-dependent:
Failure is:
Expected:'F__.php.txt'
But got:'F()__.php.txt'
Fix the unit test to use Foswiki::Sandbox::sanitizeAttachmentName() to guess the name the file will be renamed to.
--
OlivierRaginel - 21 Mar 2011