- Timestamp:
- 02/29/2016 04:41:03 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/SanitizeTitleWithDashes.php
r30515 r36775 64 64 } 65 65 66 /** 67 * @ticket 31790 68 */ 69 function test_replaces_nbsp_entities() { 70 $this->assertEquals("dont-break-the-space", sanitize_title_with_dashes("don't break the space", '', 'save')); 71 } 72 66 73 function test_replaces_ndash_mdash() { 67 74 $this->assertEquals("do-the-dash", sanitize_title_with_dashes("Do – the Dash", '', 'save')); 68 75 $this->assertEquals("do-the-dash", sanitize_title_with_dashes("Do the — Dash", '', 'save')); 76 } 77 78 /** 79 * @ticket 31790 80 */ 81 function test_replaces_ndash_mdash_entities() { 82 $this->assertEquals("do-the-dash", sanitize_title_with_dashes("Do – the – Dash", '', 'save')); 83 $this->assertEquals("do-the-dash", sanitize_title_with_dashes("Do — the — Dash", '', 'save')); 69 84 } 70 85
Note: See TracChangeset
for help on using the changeset viewer.