From d5b99d560ec66c08015edfb971d43ce6b176eb8e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 8 Jan 2015 18:44:18 +0000 Subject: [PATCH] Use home_url() instead of hardcoded domain in Tests_Link_GetAdjacentPostLink. props CalEvans. fixes #30955. git-svn-id: https://develop.svn.wordpress.org/trunk@31097 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/link/getAdjacentPostLink.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/phpunit/tests/link/getAdjacentPostLink.php b/tests/phpunit/tests/link/getAdjacentPostLink.php index f4ffc10095..9b80a056e7 100644 --- a/tests/phpunit/tests/link/getAdjacentPostLink.php +++ b/tests/phpunit/tests/link/getAdjacentPostLink.php @@ -25,37 +25,37 @@ class Tests_Link_GetAdjacentPostLink extends WP_UnitTestCase { public function test_get_next_post_link_default() { $actual = get_next_post_link(); - $expected = ' »'; + $expected = ' »'; $this->assertSame( $expected, $actual ); } public function test_get_previous_post_link_default() { $actual = get_previous_post_link(); - $expected = '« '; + $expected = '« '; $this->assertSame( $expected, $actual ); } public function test_get_next_post_link_same_category() { $actual = get_next_post_link( '%link »', '%title', true ); - $expected = ' »'; + $expected = ' »'; $this->assertSame( $expected, $actual ); } public function test_get_previous_post_link_same_category() { $actual = get_previous_post_link( '« %link', '%title', true ); - $expected = '« '; + $expected = '« '; $this->assertSame( $expected, $actual ); } public function test_get_next_post_link_exclude_category() { $actual = get_next_post_link( '%link »', '%title', false, $this->cat_id ); - $expected = ' »'; + $expected = ' »'; $this->assertSame( $expected, $actual ); } public function test_get_previous_post_link_exclude_category() { $actual = get_previous_post_link( '« %link', '%title', false, $this->cat_id ); - $expected = '« '; + $expected = '« '; $this->assertSame( $expected, $actual ); } }