Make WordPress Core


Ignore:
Timestamp:
05/01/2017 08:34:10 PM (8 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Automatically skip tests in the ms-required and ms-excluded groups.

This removes the need to manually call $this->skipWithMultisite() and $this->skipWithoutMultisite() from within the test when the test only runs without Multisite or only runs on Multisite, respectively.

Props jdgrimes for the suggestion.

Fixes #40531

File:
1 edited

Legend:

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

    r40543 r40564  
    123123     */
    124124    function test_url_to_postid_of_http_site_when_current_site_uses_https() {
    125         $this->skipWithoutMultisite();
    126 
    127125        $_SERVER['HTTPS'] = 'on';
    128126
     
    318316     */
    319317    function test_url_to_postid_ms_home_url_collision() {
    320         $this->skipWithoutMultisite();
    321 
    322318        $blog_id = self::factory()->blog->create( array( 'path' => '/example' ) );
    323319        switch_to_blog( $blog_id );
Note: See TracChangeset for help on using the changeset viewer.