From 42aeb0af8bafc7f5610de5806f7c606f5bfe63e4 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Sat, 26 Dec 2015 04:50:23 +0000 Subject: [PATCH] Tests: Use the correct URL in some shortcode tests. git-svn-id: https://develop.svn.wordpress.org/trunk@36099 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/shortcode.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/phpunit/tests/shortcode.php b/tests/phpunit/tests/shortcode.php index 7f92a6f242..9f6a71d960 100644 --- a/tests/phpunit/tests/shortcode.php +++ b/tests/phpunit/tests/shortcode.php @@ -198,16 +198,16 @@ class Tests_Shortcode extends WP_UnitTestCase { } function test_positional_atts_mixed() { - $out = do_shortcode('[test-shortcode-tag 123 http://wordpress.com/ 0 "foo" bar]'); + $out = do_shortcode('[test-shortcode-tag 123 https://wordpress.org/ 0 "foo" bar]'); $this->assertEquals( '', $out ); - $this->assertEquals( array(0=>'123', 1=>'http://wordpress.com/', 2=>'0', 3=>'foo', 4=>'bar'), $this->atts ); + $this->assertEquals( array(0=>'123', 1=>'https://wordpress.org/', 2=>'0', 3=>'foo', 4=>'bar'), $this->atts ); $this->assertEquals( 'test-shortcode-tag', $this->tagname ); } function test_positional_and_named_atts() { - $out = do_shortcode('[test-shortcode-tag 123 url=http://wordpress.com/ foo bar="baz"]'); + $out = do_shortcode('[test-shortcode-tag 123 url=https://wordpress.org/ foo bar="baz"]'); $this->assertEquals( '', $out ); - $this->assertEquals( array(0=>'123', 'url' => 'http://wordpress.com/', 1=>'foo', 'bar' => 'baz'), $this->atts ); + $this->assertEquals( array(0=>'123', 'url' => 'https://wordpress.org/', 1=>'foo', 'bar' => 'baz'), $this->atts ); $this->assertEquals( 'test-shortcode-tag', $this->tagname ); } @@ -223,8 +223,8 @@ class Tests_Shortcode extends WP_UnitTestCase { } function test_nested_tags() { - $out = do_shortcode('[baztag][dumptag abc="foo" def=123 http://wordpress.com/][/baztag]'); - $expected = "content = abc = foo\ndef = 123\n0 = http://wordpress.com\n"; + $out = do_shortcode('[baztag][dumptag abc="foo" def=123 https://wordpress.org/][/baztag]'); + $expected = "content = abc = foo\ndef = 123\n0 = https://wordpress.org\n"; $this->assertEquals($expected, $out); }