Changeset 54088 for trunk/tests/phpunit/tests/general/template.php
- Timestamp:
- 09/06/2022 10:03:10 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/general/template.php
r53774 r54088 181 181 public function test_customize_preview_wp_site_icon_empty() { 182 182 global $wp_customize; 183 wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );183 wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 184 184 185 185 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php'; … … 199 199 public function test_customize_preview_wp_site_icon_dirty() { 200 200 global $wp_customize; 201 wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );201 wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 202 202 203 203 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php'; … … 599 599 */ 600 600 public function test_get_the_archive_title_is_correct_for_author_queries() { 601 $user_with_posts = $this->factory()->user->create_and_get(601 $user_with_posts = self::factory()->user->create_and_get( 602 602 array( 603 603 'role' => 'author', 604 604 ) 605 605 ); 606 $user_with_no_posts = $this->factory()->user->create_and_get(606 $user_with_no_posts = self::factory()->user->create_and_get( 607 607 array( 608 608 'role' => 'author', … … 610 610 ); 611 611 612 $this->factory()->post->create(612 self::factory()->post->create( 613 613 array( 614 614 'post_author' => $user_with_posts->ID,
Note: See TracChangeset
for help on using the changeset viewer.