mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user