WordPress.org

Make WordPress Core

Ticket #23187: 23187-ut.diff

File 23187-ut.diff, 737 bytes (added by mdawaffe, 5 years ago)
  • tests/formatting/EscUrl.php

     
    3535                $this->assertEquals('', esc_url('nasty://example.com/'));
    3636        }
    3737
     38        function test_protocol_case() {
     39                $this->assertEquals('http://example.com', esc_url('HTTP://example.com'));
     40                $this->assertEquals('http://example.com', esc_url('Http://example.com'));
     41        }
     42
    3843        function test_display_extras() {
    3944                $this->assertEquals('http://example.com/'quoted'', esc_url('http://example.com/\'quoted\''));
    4045                $this->assertEquals('http://example.com/\'quoted\'', esc_url('http://example.com/\'quoted\'',null,'notdisplay'));