WordPress.org

Make WordPress Core

Ticket #19820: 19820_unit_test.patch

File 19820_unit_test.patch, 1.2 KB (added by kurtpayne, 3 years ago)

Unit test for quote entities and multiply sign

  • wp-testcase/test_includes_formatting.php

     
    932932        function test_replaces_curly_quotes() { 
    933933                $this->assertEquals("hey-its-curly-joe", sanitize_title_with_dashes("Hey its “Curly Joeâ€?", '', 'save')); 
    934934                $this->assertEquals("hey-its-curly-joe", sanitize_title_with_dashes("Hey its ‘Curly Joe’", '', 'save')); 
     935                $this->assertEquals("hey-its-curly-joe", sanitize_title_with_dashes("Hey its „Curly Joe„", '', 'save')); 
     936                $this->assertEquals("hey-its-curly-joe", sanitize_title_with_dashes("Hey its ‚Curly Joe‚", '', 'save'));     
     937                $this->assertEquals("hey-its-curly-joe", sanitize_title_with_dashes("Hey its ‛Curly Joe‟", '', 'save'));     
    935938        } 
    936939 
    937940        function test_replaces_copy_reg_deg_trade() { 
     
    941944                $this->assertEquals("just-a-slug", sanitize_title_with_dashes("Just ™ a Slug", '', 'save')); 
    942945        } 
    943946 
     947        function test_replaces_multipy_sign() { 
     948                $this->assertEquals("6x7-is-42", sanitize_title_with_dashes("6×7 is 42", '', 'save')); 
     949        } 
     950 
    944951} 
    945952 
    946953class TestConvertChars extends WPTestCase {