WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/01/2017 08:34:10 PM (2 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/functions.php

    r40543 r40564  
    939939     */
    940940    function test_wp_check_filetype_and_ext_with_filtered_svg() {
    941         $this->skipWithMultisite();
    942 
    943941        if ( ! extension_loaded( 'fileinfo' ) ) {
    944942            $this->markTestSkipped( 'The fileinfo PHP extension is not loaded.' );
     
    966964     */
    967965    function test_wp_check_filetype_and_ext_with_filtered_woff() {
    968         $this->skipWithMultisite();
    969 
    970966        if ( ! extension_loaded( 'fileinfo' ) ) {
    971967            $this->markTestSkipped( 'The fileinfo PHP extension is not loaded.' );
Note: See TracChangeset for help on using the changeset viewer.