WordPress.org

Make WordPress Core

Ticket #36369: 36369_test.diff

File 36369_test.diff, 1011 bytes (added by toszcze, 4 years ago)

Unit test

  • tests/phpunit/tests/formatting/EscUrl.php

     
    1313                $this->assertEquals( 'http://example.com/Mr%20WordPress',    esc_url( 'http://example.com/Mr%20WordPress' ) );
    1414                $this->assertEquals( 'http://example.com/Mr%20%20WordPress', esc_url( 'http://example.com/Mr%20%20WordPress' ) );
    1515                $this->assertEquals( 'http://example.com/Mr+WordPress',      esc_url( 'http://example.com/Mr+WordPress' ) );
     16                $this->assertEquals( 'http://example.com/Mr+WordPress',      esc_url( ' http://example.com/Mr+WordPress' ) );
    1617
    1718                $this->assertEquals( 'http://example.com/?foo=one%20two%20three&bar=four', esc_url( 'http://example.com/?foo=one two three&bar=four' ) );
    1819                $this->assertEquals( 'http://example.com/?foo=one%20two%20three&bar=four', esc_url( 'http://example.com/?foo=one%20two%20three&bar=four' ) );