WordPress.org

Make WordPress Core

Changeset 688 in tests


Ignore:
Timestamp:
04/17/12 01:57:00 (2 years ago)
Author:
SergeyBiryukov
Message:

More tests for sanitize_title_with_dashes(). props kurtpayne, see #WP19820.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_includes_formatting.php

    r687 r688  
    10591059        $this->assertEquals("hey-its-curly-joe", sanitize_title_with_dashes("Hey its ‘Curly Joe’", '', 'save')); 
    10601060        $this->assertEquals("hey-its-curly-joe", sanitize_title_with_dashes("Hey its „Curly Joe“", '', 'save')); 
     1061        $this->assertEquals("hey-its-curly-joe", sanitize_title_with_dashes("Hey its ‚Curly Joe‛", '', 'save')); 
     1062        $this->assertEquals("hey-its-curly-joe", sanitize_title_with_dashes("Hey its „Curly Joe‟", '', 'save')); 
    10611063    } 
    10621064 
     
    10661068        $this->assertEquals("just-a-slug", sanitize_title_with_dashes("Just a ° Slug", '', 'save')); 
    10671069        $this->assertEquals("just-a-slug", sanitize_title_with_dashes("Just ™ a Slug", '', 'save')); 
     1070    } 
     1071 
     1072    function test_replaces_multiply_sign() { 
     1073        $this->knownWPBug(19820); 
     1074        $this->assertEquals("6x7-is-42", sanitize_title_with_dashes("6×7 is 42", '', 'save')); 
    10681075    } 
    10691076 
Note: See TracChangeset for help on using the changeset viewer.