Ticket #42808: 42808.diff
File 42808.diff, 3.0 KB (added by , 7 years ago) |
---|
-
tests/phpunit/tests/customize/control.php
28 28 parent::setUp(); 29 29 wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) ); 30 30 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' ); 31 // @codingStandardsIgnoreStart32 31 $GLOBALS['wp_customize'] = new WP_Customize_Manager(); 33 // @codingStandardsIgnoreEnd 34 $this->wp_customize = $GLOBALS['wp_customize']; 32 $this->wp_customize = $GLOBALS['wp_customize']; 35 33 } 36 34 37 35 /** -
tests/phpunit/tests/customize/partial.php
32 32 function setUp() { 33 33 parent::setUp(); 34 34 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' ); 35 // @codingStandardsIgnoreStart36 35 $GLOBALS['wp_customize'] = new WP_Customize_Manager(); 37 // @codingStandardsIgnoreEnd 38 $this->wp_customize = $GLOBALS['wp_customize']; 36 $this->wp_customize = $GLOBALS['wp_customize']; 39 37 if ( isset( $this->wp_customize->selective_refresh ) ) { 40 38 $this->selective_refresh = $this->wp_customize->selective_refresh; 41 39 } -
tests/phpunit/tests/customize/selective-refresh-ajax.php
42 42 add_filter( 'wp_die_ajax_handler', array( $this, 'get_wp_die_handler' ), 1, 1 ); 43 43 44 44 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' ); 45 // @codingStandardsIgnoreStart46 45 $GLOBALS['wp_customize'] = new WP_Customize_Manager(); 47 // @codingStandardsIgnoreEnd 48 $this->wp_customize = $GLOBALS['wp_customize']; 46 $this->wp_customize = $GLOBALS['wp_customize']; 49 47 if ( isset( $this->wp_customize->selective_refresh ) ) { 50 48 $this->selective_refresh = $this->wp_customize->selective_refresh; 51 49 } -
tests/phpunit/tests/customize/selective-refresh.php
32 32 function setUp() { 33 33 parent::setUp(); 34 34 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' ); 35 // @codingStandardsIgnoreStart36 35 $GLOBALS['wp_customize'] = new WP_Customize_Manager(); 37 // @codingStandardsIgnoreEnd 38 $this->wp_customize = $GLOBALS['wp_customize']; 36 $this->wp_customize = $GLOBALS['wp_customize']; 39 37 if ( isset( $this->wp_customize->selective_refresh ) ) { 40 38 $this->selective_refresh = $this->wp_customize->selective_refresh; 41 39 }