Changeset 35242 for trunk/tests/phpunit/tests/customize/panel.php
- Timestamp:
- 10/17/2015 06:02:16 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/panel.php
r35225 r35242 129 129 */ 130 130 function test_check_capabilities() { 131 $user_id = self:: $factory->user->create( array( 'role' => 'administrator' ) );131 $user_id = self::factory()->user->create( array( 'role' => 'administrator' ) ); 132 132 wp_set_current_user( $user_id ); 133 133 … … 155 155 */ 156 156 function test_maybe_render() { 157 wp_set_current_user( self:: $factory->user->create( array( 'role' => 'administrator' ) ) );157 wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 158 158 $panel = new WP_Customize_Panel( $this->manager, 'bar' ); 159 159 $customize_render_panel_count = did_action( 'customize_render_panel' ); … … 180 180 */ 181 181 function test_print_templates_standard() { 182 wp_set_current_user( self:: $factory->user->create( array( 'role' => 'administrator' ) ) );182 wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 183 183 184 184 $panel = new WP_Customize_Panel( $this->manager, 'baz' ); … … 198 198 */ 199 199 function test_print_templates_custom() { 200 wp_set_current_user( self:: $factory->user->create( array( 'role' => 'administrator' ) ) );200 wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 201 201 202 202 $panel = new Custom_Panel_Test( $this->manager, 'baz' );
Note: See TracChangeset
for help on using the changeset viewer.