Make WordPress Core

Changeset 33855

Timestamp:
09/02/2015 04:50:02 PM (9 years ago)
Author:
johnbillion
Message:

More unit tests for esc_url() and esc_url_raw().

See #23605, #20771, #16859

File:
1 edited

Legend:

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

    r33851 r33855  
    3131    }
    3232
     33
     34
     35
     36
     37
     38
     39
     40
     41
    3342    function test_bare() {
    3443        $this->assertEquals( 'http://example.com', esc_url( 'example.com' ) );
     
    3948
    4049    function test_encoding() {
     50
     51
     52
     53
    4154        $this->assertEquals( 'http://example.com?foo=1&bar=2', esc_url( 'http://example.com?foo=1&bar=2' ) );
    4255        $this->assertEquals( 'http://example.com?foo=1&bar=2', esc_url( 'http://example.com?foo=1&bar=2' ) );
    4356        $this->assertEquals( 'http://example.com?foo=1&bar=2', esc_url( 'http://example.com?foo=1&bar=2' ) );
     57
     58
     59
    4460    }
    4561
Note: See TracChangeset for help on using the changeset viewer.