WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/21/2016 11:02:37 AM (4 years ago)
Author:
pento
Message:

Tests: Use a minimal theme for tests.

New default themes require workarounds being added to several unit tests, as they often alter default WordPress behaviour. To avoid ongoing maintenance issues, this change switches to a minimal theme when running tests.

This change also removes the old workarounds for default themes.

Fixes #31550.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/customize/custom-css-setting.php

    r38850 r38858  
    3737        $wp_customize = $this->wp_customize;
    3838
    39         // Remove default theme actions that interfere with tests
    40         remove_action( 'customize_register', 'twentyseventeen_customize_register' );
    41 
    4239        do_action( 'customize_register', $this->wp_customize );
    4340        $this->setting = new WP_Customize_Custom_CSS_Setting( $this->wp_customize, 'custom_css[twentysixteen]' );
Note: See TracChangeset for help on using the changeset viewer.