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

Merge of [40716] to the 4.7 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@40717 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter 2017-05-16 14:36:53 +00:00
parent 85bc8c5dc3
commit 76b080defd
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' );