Changeset 54088 for trunk/tests/phpunit/tests/customize/setting.php
- Timestamp:
- 09/06/2022 10:03:10 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/customize/setting.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/setting.php
r52010 r54088 138 138 */ 139 139 public function test_preview_standard_types_non_multidimensional() { 140 wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );140 wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 141 141 $_POST['customized'] = wp_slash( wp_json_encode( $this->post_data_overrides ) ); 142 142 … … 217 217 */ 218 218 public function test_preview_standard_types_multidimensional() { 219 wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );219 wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 220 220 $_POST['customized'] = wp_slash( wp_json_encode( $this->post_data_overrides ) ); 221 221 … … 363 363 */ 364 364 public function test_preview_custom_type() { 365 wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );365 wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 366 366 $type = 'custom_type'; 367 367 $post_data_overrides = array( … … 552 552 */ 553 553 public function test_is_current_blog_previewed() { 554 wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );554 wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 555 555 $type = 'option'; 556 556 $name = 'blogname'; … … 744 744 */ 745 745 public function test_multidimensional_value_when_previewed() { 746 wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );746 wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 747 747 WP_Customize_Setting::reset_aggregated_multidimensionals(); 748 748
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)