From 0ee7c9c678fa40899a34005fe593a3b5bdff5e39 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 1 Aug 2014 18:29:46 +0000 Subject: [PATCH] Update unit tests for `sanitize_file_name()` after [29290]. git-svn-id: https://develop.svn.wordpress.org/trunk@29342 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/functions.php b/tests/phpunit/tests/functions.php index caac87492a..6d7f972cf3 100644 --- a/tests/phpunit/tests/functions.php +++ b/tests/phpunit/tests/functions.php @@ -123,7 +123,7 @@ class Tests_Functions extends WP_UnitTestCase { $this->assertEquals( "abcdefgh.png", wp_unique_filename( $testdir, 'abcdefg"h.png' ), 'File with quote failed' ); // test crazy name (useful for regression tests) - $this->assertEquals( '12%af34567890@..%^_+qwerty-fghjkl-zx.png', wp_unique_filename( $testdir, '12%af34567890#~!@#$..%^&*()|_+qwerty fgh`jkl zx<>?:"{}[]="\'/?.png' ), 'Failed crazy file name' ); + $this->assertEquals( '12%af34567890@..%^_-qwerty-fghjkl-zx.png', wp_unique_filename( $testdir, '12%af34567890#~!@#$..%^&*()|_+qwerty fgh`jkl zx<>?:"{}[]="\'/?.png' ), 'Failed crazy file name' ); // test slashes in names $this->assertEquals( 'abcdefg.png', wp_unique_filename( $testdir, 'abcde\fg.png' ), 'Slash not removed' );