Make WordPress Core


Ignore:
Timestamp:
03/27/2008 09:15:44 PM (18 years ago)
Author:
tellyworth
Message:

temporarily remove a broken wp_unique_filename() test; add a test for the case where the filename includes a full path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_includes_functions.php

    r176 r188  
    162162                // incomplete coverage; attempts to cover the most common cases
    163163                str_replace('-', '%', $testimg), // test%image.png
    164                 'test' . str_replace('e', 'é', $testimg), // tést-imagé.png
    165                 '12%af34567890~!@#$..%^&*()_+qwerty  uiopasd fghjkl zxcvbnm<>?:"{}".png' // kitchen sink
     164               
     165                // FIXME: this doesn't work on many systems because strtolower() mangles it
     166                //'test' . str_replace('e', 'é', $testimg), // tést-imagé.png
     167               
     168                '12%af34567890~!@#$..%^&*()_+qwerty  uiopasd fghjkl zxcvbnm<>?:"{}".png', // kitchen sink
     169                $testdir.'test-image-with-path.png',
    166170            );
    167171       
     
    197201               
    198202                'testimage.png',
    199                 'testtest-image.png',
    200                 '12%af34567890_qwerty-uiopasd-fghjkl-zxcvbnm.png'
     203               
     204                // FIXME
     205                //'testtest-image.png',
     206               
     207                '12%af34567890_qwerty-uiopasd-fghjkl-zxcvbnm.png',
     208                'test-image-with-path.png',
    201209            );
    202210       
     
    210218            // -- TEST 1: the replacement is as expected
    211219           
    212             $this->assertEquals( $expected[$key], wp_unique_filename($testdir, $case, NULL) );
     220            $this->assertEquals( $expected[$key], wp_unique_filename($testdir, $case, NULL), $case );
    213221           
    214222            // -- end TEST 1
Note: See TracChangeset for help on using the changeset viewer.