From 6063b2c0f984575d6ccb0e9e8611e161e9f2f16d Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Tue, 19 May 2015 05:45:31 +0000 Subject: [PATCH] Use `WP_TESTS_DOMAIN` in `test_get_blogaddress_by_id_with_valid_id()` A hard coded `example.org` would break the test if a custom `WP_TESTS_DOMAIN` was specified. We should defer to the configured default. Fixes #32026. git-svn-id: https://develop.svn.wordpress.org/trunk@32512 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/multisite/site.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/multisite/site.php b/tests/phpunit/tests/multisite/site.php index 50d81097cc..0c124d4554 100644 --- a/tests/phpunit/tests/multisite/site.php +++ b/tests/phpunit/tests/multisite/site.php @@ -1471,7 +1471,7 @@ class Tests_Multisite_Site extends WP_UnitTestCase { */ function test_get_blogaddress_by_id_with_valid_id() { $blogaddress = get_blogaddress_by_id( 1 ); - $this->assertEquals( 'http://example.org/', $blogaddress ); + $this->assertEquals( 'http://' . WP_TESTS_DOMAIN . '/', $blogaddress ); } /**