WordPress.org

Make WordPress Core

Ticket #30284: 16859-remove.diff

File 16859-remove.diff, 2.0 KB (added by MikeHansenMe, 5 years ago)

#16859

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

    diff --git a/tests/phpunit/tests/formatting/EscUrl.php b/tests/phpunit/tests/formatting/EscUrl.php
    index 478d385..9b97a92 100644
    a b class Tests_Formatting_EscUrl extends WP_UnitTestCase { 
    6363        }
    6464
    6565        /**
    66          * @ticket 16859
    67          */
    68         function test_square_brackets() {
    69                 $this->assertEquals( 'http://example.com/?foo%5Bbar%5D=baz', esc_url( 'http://example.com/?foo[bar]=baz' ) );
    70                 $this->assertEquals( 'http://example.com/?baz=bar&foo%5Bbar%5D=baz', esc_url( 'http://example.com/?baz=bar&foo[bar]=baz' ) );
    71                 //IPv6 addresses in urls - RFC2732
    72                 $this->assertEquals( 'http://[::FFFF::127.0.0.1]', esc_url( 'http://[::FFFF::127.0.0.1]' ) );
    73                 $this->assertEquals( 'http://[::127.0.0.1]', esc_url( 'http://[::127.0.0.1]' ) );
    74                 $this->assertEquals( 'http://[::DEAD:BEEF:DEAD:BEEF:DEAD:BEEF:DEAD:BEEF]', esc_url( 'http://[::DEAD:BEEF:DEAD:BEEF:DEAD:BEEF:DEAD:BEEF]' ) );
    75         }
    76 
    77         /**
    7866         * @ticket 21974
    7967         */
    8068        function test_protocol_relative_with_colon() {
  • tests/phpunit/tests/formatting/MakeClickable.php

    diff --git a/tests/phpunit/tests/formatting/MakeClickable.php b/tests/phpunit/tests/formatting/MakeClickable.php
    index ef55b5c..dec5d40 100644
    a b class Tests_Formatting_MakeClickable extends WP_UnitTestCase { 
    365365        }
    366366
    367367        /**
    368          * @ticket 16859
    369          */
    370         function test_square_brackets() {
    371                 $urls_before = array(
    372                         'http://example.com/?foo[bar]=baz',
    373                         'http://example.com/?baz=bar&foo[bar]=baz',
    374                 );
    375                 $urls_expected = array(
    376                         '<a href="http://example.com/?foo%5Bbar%5D=baz" rel="nofollow">http://example.com/?foo%5Bbar%5D=baz</a>',
    377                         '<a href="http://example.com/?baz=bar&#038;foo%5Bbar%5D=baz" rel="nofollow">http://example.com/?baz=bar&#038;foo%5Bbar%5D=baz</a>',
    378                 );
    379                 foreach ($urls_before as $key => $url) {
    380                         $this->assertEquals( $urls_expected[$key], make_clickable( $url ) );
    381                 }
    382         }
    383 
    384         /**
    385368         * @ticket 19028
    386369         */
    387370        function test_line_break_in_existing_clickable_link() {