Index: tests/phpunit/tests/link/getAdjacentPostLink.php
===================================================================
--- tests/phpunit/tests/link/getAdjacentPostLink.php	(revision 31095)
+++ tests/phpunit/tests/link/getAdjacentPostLink.php	(working copy)
@@ -7,6 +7,7 @@
 
 	protected $post_ids;
 	protected $cat_id;
+	protected $link;
 
 	public function setUp(){
 		parent::setUp();
@@ -21,41 +22,42 @@
 		//set current post (has 2 on each end)
 		global $GLOBALS;
 		$GLOBALS['post'] = get_post( $this->post_ids[2] );
+		$this->site_url = get_site_url();
 	}
 
 	public function test_get_next_post_link_default() {
 		$actual = get_next_post_link();
-		$expected = '<a href="http://example.org/?p=' . $this->post_ids[1] . '" rel="next">Post title 2</a> &raquo;';
+		$expected = '<a href="' . $this->site_url . '/?p=' . $this->post_ids[1] . '" rel="next">Post title 2</a> &raquo;';
 		$this->assertSame( $expected, $actual );
 	}
 
 	public function test_get_previous_post_link_default() {
 		$actual = get_previous_post_link();
-		$expected = '&laquo; <a href="http://example.org/?p=' . $this->post_ids[3] . '" rel="prev">Post title 4</a>';
+		$expected = '&laquo; <a href="' . $this->site_url . '/?p=' . $this->post_ids[3] . '" rel="prev">Post title 4</a>';
 		$this->assertSame( $expected, $actual );
 	}
 
 	public function test_get_next_post_link_same_category() {
 		$actual = get_next_post_link( '%link &raquo;', '%title', true );
-		$expected = '<a href="http://example.org/?p=' . $this->post_ids[1] . '" rel="next">Post title 2</a> &raquo;';
+		$expected = '<a href="' . $this->site_url . '/?p=' . $this->post_ids[1] . '" rel="next">Post title 2</a> &raquo;';
 		$this->assertSame( $expected, $actual );
 	}
 
 	public function test_get_previous_post_link_same_category() {
 		$actual = get_previous_post_link( '&laquo; %link', '%title', true );
-		$expected = '&laquo; <a href="http://example.org/?p=' . $this->post_ids[3] . '" rel="prev">Post title 4</a>';
+		$expected = '&laquo; <a href="' . $this->site_url . '/?p=' . $this->post_ids[3] . '" rel="prev">Post title 4</a>';
 		$this->assertSame( $expected, $actual );
 	}
 
 	public function test_get_next_post_link_exclude_category() {
 		$actual = get_next_post_link( '%link &raquo;', '%title', false, $this->cat_id );
-		$expected = '<a href="http://example.org/?p=' . $this->post_ids[1] . '" rel="next">Post title 2</a> &raquo;';
+		$expected = '<a href="' . $this->site_url . '/?p=' . $this->post_ids[1] . '" rel="next">Post title 2</a> &raquo;';
 		$this->assertSame( $expected, $actual );
 	}
 
 	public function test_get_previous_post_link_exclude_category() {
 		$actual = get_previous_post_link( '&laquo; %link', '%title', false, $this->cat_id );
-		$expected = '&laquo; <a href="http://example.org/?p=' . $this->post_ids[3] . '" rel="prev">Post title 4</a>';
+		$expected = '&laquo; <a href="' . $this->site_url . '/?p=' . $this->post_ids[3] . '" rel="prev">Post title 4</a>';
 		$this->assertSame( $expected, $actual );
 	}
 }
