Changeset 38810 for trunk/tests/phpunit/tests/customize/setting.php
- Timestamp:
- 10/18/2016 08:04:36 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/setting.php
r38763 r38810 98 98 */ 99 99 function test_preview_standard_types_non_multidimensional() { 100 wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) ); 100 101 $_POST['customized'] = wp_slash( wp_json_encode( $this->post_data_overrides ) ); 101 102 … … 176 177 */ 177 178 function test_preview_standard_types_multidimensional() { 179 wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) ); 178 180 $_POST['customized'] = wp_slash( wp_json_encode( $this->post_data_overrides ) ); 179 181 … … 315 317 */ 316 318 function test_preview_custom_type() { 319 wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) ); 317 320 $type = 'custom_type'; 318 321 $post_data_overrides = array( … … 479 482 */ 480 483 function test_is_current_blog_previewed() { 484 wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) ); 481 485 $type = 'option'; 482 486 $name = 'blogname'; … … 503 507 } 504 508 509 wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 505 510 $type = 'option'; 506 511 $name = 'blogdescription'; … … 648 653 */ 649 654 public function test_multidimensional_value_when_previewed() { 655 wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) ); 650 656 WP_Customize_Setting::reset_aggregated_multidimensionals(); 651 657
Note: See TracChangeset
for help on using the changeset viewer.