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/option/networkOption.php

    r39556 r40520  
    1212 */
    1313class Tests_Option_NetworkOption extends WP_UnitTestCase {
     14
     15    /**
     16     * @group ms-required
     17     */
    1418    function test_add_network_option_not_available_on_other_network() {
    1519        if ( ! is_multisite() ) {
     
    2529    }
    2630
     31    /**
     32     * @group ms-required
     33     */
    2734    function test_add_network_option_available_on_same_network() {
    2835        if ( ! is_multisite() ) {
     
    3845    }
    3946
     47    /**
     48     * @group ms-required
     49     */
    4050    function test_delete_network_option_on_only_one_network() {
    4151        if ( ! is_multisite() ) {
     
    5565    /**
    5666     * @ticket 22846
     67     * @group ms-excluded
    5768     */
    5869    public function test_add_network_option_is_not_stored_as_autoload_option() {
     
    7283    /**
    7384     * @ticket 22846
     85     * @group ms-excluded
    7486     */
    7587    public function test_update_network_option_is_not_stored_as_autoload_option() {
Note: See TracChangeset for help on using the changeset viewer.