Coding Standards: Fix WPCS issues in tests/formatting/SanitizeFileName.php
.
Follow-up to [47638]. git-svn-id: https://develop.svn.wordpress.org/trunk@47664 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
514f7c4cc9
commit
c61e42db64
@ -78,10 +78,10 @@ class Tests_Formatting_SanitizeFileName extends WP_UnitTestCase {
|
|||||||
|
|
||||||
function data_wp_filenames() {
|
function data_wp_filenames() {
|
||||||
return array(
|
return array(
|
||||||
[ urldecode( '%B1myfile.png' ), 'myfile.png' ],
|
array( urldecode( '%B1myfile.png' ), 'myfile.png' ),
|
||||||
[ urldecode( '%B1myfile' ), 'myfile' ],
|
array( urldecode( '%B1myfile' ), 'myfile' ),
|
||||||
[ 'demo bar.png', 'demo-bar.png' ],
|
array( 'demo bar.png', 'demo-bar.png' ),
|
||||||
[ 'demo' . json_decode( '"\u00a0"' ) . 'bar.png', 'demo-bar.png' ],
|
array( 'demo' . json_decode( '"\u00a0"' ) . 'bar.png', 'demo-bar.png' ),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user