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
This commit is contained in:
Jeremy Felt 2015-05-19 05:45:31 +00:00
parent 09bd58b4c9
commit 6063b2c0f9
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}
/**