WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/21/2016 05:27:56 AM (4 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/selective-refresh.php

    r36643 r38850  
    4040            $this->selective_refresh = $this->wp_customize->selective_refresh;
    4141        }
     42
     43        // Remove default theme actions that interfere with tests
     44        remove_action( 'customize_register', 'twentyseventeen_customize_register' );
    4245    }
    4346
Note: See TracChangeset for help on using the changeset viewer.