WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/22/2017 06:58:46 PM (2 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Introduce ms-required and ms-excluded groups for tests.

Tests in the ms-excluded group are now excluded when running tests with multisite enabled, and tests in the ms-required group are excluded when running tests without multisite enabled. The end result is a significantly reduced number of skipped tests polluting PHPUnit's output, which means verbose mode can be used to more easily see which tests are skipped or incomplete, and why.

See #40531

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/l10n/getLocale.php

    r39005 r40520  
    1818    }
    1919
     20    /**
     21     * @group ms-required
     22     */
    2023    public function test_local_option_should_take_precedence_on_multisite() {
    2124        if ( ! is_multisite() ) {
     
    3639    }
    3740
     41    /**
     42     * @group ms-required
     43     */
    3844    public function test_network_option_should_be_fallback_on_multisite() {
    3945        if ( ! is_multisite() ) {
     
    5359    }
    5460
     61    /**
     62     * @group ms-excluded
     63     */
    5564    public function test_option_should_be_respected_on_nonmultisite() {
    5665        if ( is_multisite() ) {
Note: See TracChangeset for help on using the changeset viewer.