Make WordPress Core

Changeset 29342


Ignore:
Timestamp:
08/01/2014 06:29:46 PM (7 years ago)
Author:
wonderboymusic
Message:

Update unit tests for sanitize_file_name() after [29290].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions.php

    r28882 r29342  
    124124
    125125        // test crazy name (useful for regression tests)
    126         $this->assertEquals( '12%af34567890@..%^_+qwerty-fghjkl-zx.png', wp_unique_filename( $testdir, '12%af34567890#~!@#$..%^&*()|_+qwerty  fgh`jkl zx<>?:"{}[]="\'/?.png' ), 'Failed crazy file name' );
     126        $this->assertEquals( '12%af34567890@..%^_-qwerty-fghjkl-zx.png', wp_unique_filename( $testdir, '12%af34567890#~!@#$..%^&*()|_+qwerty  fgh`jkl zx<>?:"{}[]="\'/?.png' ), 'Failed crazy file name' );
    127127
    128128        // test slashes in names
Note: See TracChangeset for help on using the changeset viewer.