- Timestamp:
- 03/26/2019 12:45:57 AM (6 years ago)
- Location:
- branches/4.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0
- Property svn:mergeinfo changed
/trunk merged: 29860,29869,29954,30160,30530
- Property svn:mergeinfo changed
-
branches/4.0/tests/phpunit/tests/formatting/SanitizeTitleWithDashes.php
r25002 r45013 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.