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/theme/WPTheme.php

    r40543 r40564  
    149149     */
    150150    function test_wp_theme_network_enable_single_theme() {
    151         $this->skipWithoutMultisite();
    152 
    153151        $theme = 'testtheme-1';
    154152        $current_allowed_themes = get_site_option( 'allowedthemes' );
     
    168166     */
    169167    function test_wp_theme_network_enable_multiple_themes() {
    170         $this->skipWithoutMultisite();
    171 
    172168        $themes = array( 'testtheme-2', 'testtheme-3' );
    173169        $current_allowed_themes = get_site_option( 'allowedthemes' );
     
    187183     */
    188184    function test_network_disable_single_theme() {
    189         $this->skipWithoutMultisite();
    190 
    191185        $current_allowed_themes = get_site_option( 'allowedthemes' );
    192186
     
    210204     */
    211205    function test_network_disable_multiple_themes() {
    212         $this->skipWithoutMultisite();
    213 
    214206        $current_allowed_themes = get_site_option( 'allowedthemes' );
    215207
Note: See TracChangeset for help on using the changeset viewer.