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

    r40543 r40564  
    1717     */
    1818    function test_add_network_option_not_available_on_other_network() {
    19         $this->skipWithoutMultisite();
    20 
    2119        $id = self::factory()->network->create();
    2220        $option = __FUNCTION__;
     
    3129     */
    3230    function test_add_network_option_available_on_same_network() {
    33         $this->skipWithoutMultisite();
    34 
    3531        $id = self::factory()->network->create();
    3632        $option = __FUNCTION__;
     
    4541     */
    4642    function test_delete_network_option_on_only_one_network() {
    47         $this->skipWithoutMultisite();
    48 
    4943        $id = self::factory()->network->create();
    5044        $option = __FUNCTION__;
     
    6256     */
    6357    public function test_add_network_option_is_not_stored_as_autoload_option() {
    64         $this->skipWithMultisite();
    65 
    6658        $key = __FUNCTION__;
    6759
     
    7870     */
    7971    public function test_update_network_option_is_not_stored_as_autoload_option() {
    80         $this->skipWithMultisite();
    81 
    8272        $key = __FUNCTION__;
    8373
Note: See TracChangeset for help on using the changeset viewer.