Customize: Fix phpunit tests after [40704] due to logic inversion error.

git-svn-id: https://develop.svn.wordpress.org/trunk@40716 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter 2017-05-16 14:33:16 +00:00
parent eedf5b2a60
commit fe789a2644
1 changed files with 1 additions and 1 deletions

View File

@ -77,8 +77,8 @@ class Tests_WP_Customize_Widgets extends WP_UnitTestCase {
function do_customize_boot_actions() {
$_SERVER['REQUEST_METHOD'] = 'POST';
do_action( 'setup_theme' );
$_REQUEST['nonce'] = wp_create_nonce( 'preview-customize_' . $this->manager->theme()->get_stylesheet() );
do_action( 'setup_theme' );
do_action( 'after_setup_theme' );
do_action( 'init' );
do_action( 'wp_loaded' );