Changeset 36611 for trunk/tests/phpunit/tests/customize/widgets.php
- Timestamp:
- 02/22/2016 05:30:30 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/widgets.php
r36586 r36611 24 24 parent::setUp(); 25 25 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' ); 26 27 $user_id = self::factory()->user->create( array( 'role' => 'administrator' ) ); 28 wp_set_current_user( $user_id ); 26 29 $GLOBALS['wp_customize'] = new WP_Customize_Manager(); 27 30 $this->manager = $GLOBALS['wp_customize']; … … 41 44 remove_action( 'after_setup_theme', 'twentysixteen_setup' ); 42 45 remove_action( 'customize_register', 'twentysixteen_customize_register', 11 ); 43 44 $user_id = self::factory()->user->create( array( 'role' => 'administrator' ) );45 wp_set_current_user( $user_id );46 46 47 47 $this->backup_registered_sidebars = $GLOBALS['wp_registered_sidebars'];
Note: See TracChangeset
for help on using the changeset viewer.