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:
parent
09bd58b4c9
commit
6063b2c0f9
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user