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

Merge of [40716] to the 4.3 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.3@40721 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter 2017-05-16 14:43:48 +00:00
parent 8f1b6dc4be
commit ff4f97ce12

View File

@ -47,8 +47,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' );