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
This commit is contained in:
Boone Gorges 2014-11-22 15:39:38 +00:00
parent f0b8424483
commit 3818c645c3
2 changed files with 0 additions and 29 deletions

View File

@ -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/' ) ); $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 * @ticket 21974
*/ */

View File

@ -364,23 +364,6 @@ class Tests_Formatting_MakeClickable extends WP_UnitTestCase {
$this->assertEquals( $in, $out ); $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(
'<a href="http://example.com/?foo%5Bbar%5D=baz" rel="nofollow">http://example.com/?foo%5Bbar%5D=baz</a>',
'<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>',
);
foreach ($urls_before as $key => $url) {
$this->assertEquals( $urls_expected[$key], make_clickable( $url ) );
}
}
/** /**
* @ticket 19028 * @ticket 19028
*/ */