Skip to content

Commit 4a8e4bf

Browse files
committed
Add test cases for #64089
1 parent b6c307f commit 4a8e4bf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/phpunit/tests/formatting/sanitizeTitleWithDashes.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,18 @@ public function test_replaces_ndash_mdash_entities() {
8585
$this->assertSame( 'do-the-dash', sanitize_title_with_dashes( 'Do — the — Dash', '', 'save' ) );
8686
}
8787

88+
89+
/**
90+
* @ticket 64089
91+
*/
92+
public function test_replaces_nonbreaking_hyphen() {
93+
$this->assertSame( 'do-the-dash', sanitize_title_with_dashes( 'Do‑the Dash', '', 'save' ) );
94+
}
95+
96+
public function test_replaces_nonbreaking_hyphen_entity() {
97+
$this->assertSame( 'do-the-dash', sanitize_title_with_dashes( 'Do ‑ the Dash', '', 'save' ) );
98+
}
99+
88100
public function test_replaces_iexcel_iquest() {
89101
$this->assertSame( 'just-a-slug', sanitize_title_with_dashes( 'Just ¡a Slug', '', 'save' ) );
90102
$this->assertSame( 'just-a-slug', sanitize_title_with_dashes( 'Just a Slug¿', '', 'save' ) );

0 commit comments

Comments
 (0)