Ticket #21453: 21453.patch
File 21453.patch, 943 bytes (added by , 9 years ago) |
---|
-
tests/phpunit/tests/functions.php
146 146 147 147 // check number is appended for file already exists 148 148 $this->assertFileExists( $testdir . 'test-image.png', 'Test image does not exist' ); 149 $this->assertEquals( 'test-image 1.png', wp_unique_filename( $testdir, 'test-image.png' ), 'Number not appended correctly' );150 $this->assertFileNotExists( $testdir . 'test-image 1.png' );149 $this->assertEquals( 'test-image-1.png', wp_unique_filename( $testdir, 'test-image.png' ), 'Number not appended correctly' ); 150 $this->assertFileNotExists( $testdir . 'test-image-1.png' ); 151 151 152 152 // check special chars 153 153 $this->assertEquals( 'testtést-imagé.png', wp_unique_filename( $testdir, 'testtést-imagé.png' ), 'Filename with special chars failed' );