- Timestamp:
- 02/21/2020 01:05:39 PM (5 years ago)
- Location:
- branches/3.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8
- Property svn:mergeinfo changed
-
branches/3.8/tests/phpunit/tests/formatting/SanitizeTitleWithDashes.php
r25002 r47338 34 34 function test_handles_non_entity_ampersands() { 35 35 $this->assertEquals("penn-teller-bull", sanitize_title_with_dashes("penn & teller bull")); 36 }37 38 /**39 * @ticket 1082340 */41 function test_strips_entities() {42 $this->assertEquals("no-entities-here", sanitize_title_with_dashes("No Entities – Here &"));43 $this->assertEquals("one-two", sanitize_title_with_dashes("One & Two", '', 'save'));44 $this->assertEquals("one-two", sanitize_title_with_dashes("One { Two;", '', 'save'));45 $this->assertEquals("one-two", sanitize_title_with_dashes("One & Two;", '', 'save'));46 $this->assertEquals("one-two", sanitize_title_with_dashes("One Two™;", '', 'save'));47 $this->assertEquals("one-two", sanitize_title_with_dashes("One && Two;", '', 'save'));48 $this->assertEquals("onetwo", sanitize_title_with_dashes("One&Two", '', 'save'));49 $this->assertEquals("onetwo-test", sanitize_title_with_dashes("One&Two Test;", '', 'save'));50 36 } 51 37
Note: See TracChangeset
for help on using the changeset viewer.