Changeset 54088 for trunk/tests/phpunit/tests/customize/nav-menus.php
- Timestamp:
- 09/06/2022 10:03:10 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/nav-menus.php
r52010 r54088 852 852 public function test_sanitize_nav_menus_created_posts() { 853 853 $menus = new WP_Customize_Nav_Menus( $this->wp_customize ); 854 $contributor_user_id = $this->factory()->user->create( array( 'role' => 'contributor' ) );855 $author_user_id = $this->factory()->user->create( array( 'role' => 'author' ) );856 $administrator_user_id = $this->factory()->user->create( array( 'role' => 'administrator' ) );857 858 $contributor_post_id = $this->factory()->post->create(854 $contributor_user_id = self::factory()->user->create( array( 'role' => 'contributor' ) ); 855 $author_user_id = self::factory()->user->create( array( 'role' => 'author' ) ); 856 $administrator_user_id = self::factory()->user->create( array( 'role' => 'administrator' ) ); 857 858 $contributor_post_id = self::factory()->post->create( 859 859 array( 860 860 'post_status' => 'auto-draft', … … 864 864 ) 865 865 ); 866 $author_post_id = $this->factory()->post->create(866 $author_post_id = self::factory()->post->create( 867 867 array( 868 868 'post_status' => 'auto-draft', … … 872 872 ) 873 873 ); 874 $administrator_post_id = $this->factory()->post->create(874 $administrator_post_id = self::factory()->post->create( 875 875 array( 876 876 'post_status' => 'auto-draft', … … 881 881 ); 882 882 883 $draft_post_id = $this->factory()->post->create(883 $draft_post_id = self::factory()->post->create( 884 884 array( 885 885 'post_status' => 'draft', … … 889 889 ); 890 890 891 $private_post_id = $this->factory()->post->create(891 $private_post_id = self::factory()->post->create( 892 892 array( 893 893 'post_status' => 'private', … … 991 991 $trashed_post_id = $r->ID; 992 992 993 $pre_published_post_id = $this->factory()->post->create( array( 'post_status' => 'publish' ) );993 $pre_published_post_id = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 994 994 995 995 $setting_id = 'nav_menus_created_posts';
Note: See TracChangeset
for help on using the changeset viewer.