From 3818c645c3a6584239a6c9e9f309de884e4362be Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Sat, 22 Nov 2014 15:39:38 +0000 Subject: [PATCH] Remove failing tests related to square brackets being stripped in URL sanitizers. These tests have been added as a patch to their original ticket, #16859. Props MikeHansenMe. See #30284. git-svn-id: https://develop.svn.wordpress.org/trunk@30514 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/formatting/EscUrl.php | 12 ------------ .../phpunit/tests/formatting/MakeClickable.php | 17 ----------------- 2 files changed, 29 deletions(-) diff --git a/tests/phpunit/tests/formatting/EscUrl.php b/tests/phpunit/tests/formatting/EscUrl.php index 478d385fc7..9b97a92df8 100644 --- a/tests/phpunit/tests/formatting/EscUrl.php +++ b/tests/phpunit/tests/formatting/EscUrl.php @@ -62,18 +62,6 @@ class Tests_Formatting_EscUrl extends WP_UnitTestCase { $this->assertEquals( 'feed:http://wordpress.org/feed/', esc_url( 'feed:http://wordpress.org/feed/' ) ); } - /** - * @ticket 16859 - */ - function test_square_brackets() { - $this->assertEquals( 'http://example.com/?foo%5Bbar%5D=baz', esc_url( 'http://example.com/?foo[bar]=baz' ) ); - $this->assertEquals( 'http://example.com/?baz=bar&foo%5Bbar%5D=baz', esc_url( 'http://example.com/?baz=bar&foo[bar]=baz' ) ); - //IPv6 addresses in urls - RFC2732 - $this->assertEquals( 'http://[::FFFF::127.0.0.1]', esc_url( 'http://[::FFFF::127.0.0.1]' ) ); - $this->assertEquals( 'http://[::127.0.0.1]', esc_url( 'http://[::127.0.0.1]' ) ); - $this->assertEquals( 'http://[::DEAD:BEEF:DEAD:BEEF:DEAD:BEEF:DEAD:BEEF]', esc_url( 'http://[::DEAD:BEEF:DEAD:BEEF:DEAD:BEEF:DEAD:BEEF]' ) ); - } - /** * @ticket 21974 */ diff --git a/tests/phpunit/tests/formatting/MakeClickable.php b/tests/phpunit/tests/formatting/MakeClickable.php index ef55b5c0f1..dec5d404b0 100644 --- a/tests/phpunit/tests/formatting/MakeClickable.php +++ b/tests/phpunit/tests/formatting/MakeClickable.php @@ -364,23 +364,6 @@ class Tests_Formatting_MakeClickable extends WP_UnitTestCase { $this->assertEquals( $in, $out ); } - /** - * @ticket 16859 - */ - function test_square_brackets() { - $urls_before = array( - 'http://example.com/?foo[bar]=baz', - 'http://example.com/?baz=bar&foo[bar]=baz', - ); - $urls_expected = array( - 'http://example.com/?foo%5Bbar%5D=baz', - 'http://example.com/?baz=bar&foo%5Bbar%5D=baz', - ); - foreach ($urls_before as $key => $url) { - $this->assertEquals( $urls_expected[$key], make_clickable( $url ) ); - } - } - /** * @ticket 19028 */