From c3d9dffae60ea2e3c791ad2fa36b1fd1413fcb61 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 13 Oct 2015 03:41:11 +0000 Subject: [PATCH] After [35122], update `test_wp_unique_filename()` to reflect the change. See #16226. git-svn-id: https://develop.svn.wordpress.org/trunk@35124 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/functions.php b/tests/phpunit/tests/functions.php index f077c32d9d..1f45cd91e0 100644 --- a/tests/phpunit/tests/functions.php +++ b/tests/phpunit/tests/functions.php @@ -162,7 +162,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( '12af34567890@..^_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' ); @@ -606,7 +606,7 @@ class Tests_Functions extends WP_UnitTestCase { if ( ! function_exists( 'mb_detect_order' ) ) { $this->markTestSkipped( 'mbstring extension not available.' ); } - + $old_charsets = $charsets = mb_detect_order(); if ( ! in_array( 'EUC-JP', $charsets ) ) { $charsets[] = 'EUC-JP';