Changeset 54088 for trunk/tests/phpunit/tests/customize/control.php
- Timestamp:
- 09/06/2022 10:03:10 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/control.php
r52010 r54088 27 27 public function set_up() { 28 28 parent::set_up(); 29 wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );29 wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 30 30 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php'; 31 31 $GLOBALS['wp_customize'] = new WP_Customize_Manager(); … … 139 139 140 140 // Ensure that auto-draft pages are included if they are among the nav_menus_created_posts. 141 $auto_draft_page_id = $this->factory()->post->create(141 $auto_draft_page_id = self::factory()->post->create( 142 142 array( 143 143 'post_type' => 'page', … … 146 146 ) 147 147 ); 148 $this->factory()->post->create(148 self::factory()->post->create( 149 149 array( 150 150 'post_type' => 'page', … … 153 153 ) 154 154 ); 155 $auto_draft_post_id = $this->factory()->post->create(155 $auto_draft_post_id = self::factory()->post->create( 156 156 array( 157 157 'post_type' => 'post',
Note: See TracChangeset
for help on using the changeset viewer.