Make WordPress Core

Changeset 29881


Ignore:
Timestamp:
10/12/2014 01:41:43 AM (10 years ago)
Author:
jeremyfelt
Message:

Reset multisite unit tests global stack to original host after testing bootstrap

After using _setup_host_request() to test multiple domain and path combinations, use the same to set the global stack back to a domain of WP_TESTS_DOMAIN and path of /.

Fixes #29930

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/ms.php

    r29824 r29881  
    15961596        $this->assertEquals( $ids['make.wordpress.org/foo/'], $current_blog->blog_id );
    15971597        $this->assertEquals( $network_ids['make.wordpress.org/'], $current_blog->site_id );
     1598
     1599        // Request the original tests domain and path to unpollute the stack.
     1600        $this->_setup_host_request( WP_TESTS_DOMAIN, '/' );
    15981601    }
    15991602
Note: See TracChangeset for help on using the changeset viewer.