Make WordPress Core

Changeset 32512


Ignore:
Timestamp:
05/19/2015 05:45:31 AM (11 years ago)
Author:
jeremyfelt
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/multisite/site.php

    r31623 r32512  
    14721472    function test_get_blogaddress_by_id_with_valid_id() {
    14731473        $blogaddress = get_blogaddress_by_id( 1 );
    1474         $this->assertEquals( 'http://example.org/', $blogaddress );
     1474        $this->assertEquals( 'http://' . WP_TESTS_DOMAIN . '/', $blogaddress );
    14751475    }
    14761476
Note: See TracChangeset for help on using the changeset viewer.