Make WordPress Core


Ignore:
Timestamp:
10/21/2016 05:27:56 AM (8 years ago)
Author:
pento
Message:

Tests: Prevent Twenty Seventeen from interfering with Customizer tests.

This was previously fixed in [38837], but it wasn't really the correct answer, to fix it in the theme. So, [38837] is reverted in this commit, and the Twenty Seventeen actions causing problems are unhooked before tests are run.

See #38372.

File:
1 edited

Legend:

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

    r38829 r38850  
    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
    3942        do_action( 'customize_register', $this->wp_customize );
    4043        $this->setting = new WP_Customize_Custom_CSS_Setting( $this->wp_customize, 'custom_css[twentysixteen]' );
Note: See TracChangeset for help on using the changeset viewer.