Item10516: UploadScript tests are not locale-aware

pencil
Priority: Normal
Current State: Closed
Released In: 1.1.4
Target Release: patch
Applies To: Engine
Component:
Branches:
Reported By: OlivierRaginel
Waiting For:
Last Change By: OlivierRaginel
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

 
Topic revision: r6 - 21 Mar 2011, OlivierRaginel
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy