Make WordPress Core

Changeset 1184 in tests


Ignore:
Timestamp:
01/13/2013 06:45:53 PM (11 years ago)
Author:
SergeyBiryukov
Message:

esc_url() test for scheme case. props mdawaffe. see #23187.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/formatting/EscUrl.php

    r909 r1184  
    3636    }
    3737
     38    /**
     39     * @ticket 23187
     40     */
     41    function test_protocol_case() {
     42        $this->assertEquals('http://example.com', esc_url('HTTP://example.com'));
     43        $this->assertEquals('http://example.com', esc_url('Http://example.com'));
     44    }
     45
    3846    function test_display_extras() {
    3947        $this->assertEquals('http://example.com/'quoted'', esc_url('http://example.com/\'quoted\''));
Note: See TracChangeset for help on using the changeset viewer.