Skip to content

Commit a3a1585

Browse files
velvet-thunder-95himanshupathak95
authored andcommitted
Tests: Handle capital case
1 parent 6b3211f commit a3a1585

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/phpunit/tests/formatting/sanitizeTitleWithDashes.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,14 @@ public function test_replaces_multiply_sign_in_display_context() {
181181
$this->assertSame( 'testx', sanitize_title_with_dashes( 'test×', '' ), 'Multiplication sign should be replaced with x when context is not specified' );
182182
}
183183

184+
/**
185+
* @ticket 64284
186+
*/
187+
public function test_replaces_url_encoded_multiply_sign() {
188+
$this->assertSame( 'x', sanitize_title_with_dashes( '%c3%97', '', 'save' ), 'URL-encoded multiplication sign (lowercase %c3%97) should be replaced with x in save context' );
189+
$this->assertSame( 'x', sanitize_title_with_dashes( '%C3%97', '', 'save' ), 'URL-encoded multiplication sign (uppercase %C3%97) should be replaced with x in save context' );
190+
}
191+
184192
/**
185193
* @ticket 20772
186194
*/

0 commit comments

Comments
 (0)