Changeset 48157 for trunk/tests/phpunit/tests/post/listPages.php
- Timestamp:
- 06/24/2020 03:00:43 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/listPages.php
r46612 r48157 6 6 class Tests_List_Pages extends WP_UnitTestCase { 7 7 /** 8 * Editor user id. 9 * 10 * @var int 11 */ 12 public static $editor; 13 14 /** 8 15 * Author user id. 9 16 * … … 52 59 $post_date = gmdate( 'Y-m-d H:i:s', self::$time ); 53 60 61 self::$editor = self::factory()->user->create( array( 'role' => 'editor' ) ); 62 self::$author = self::factory()->user->create( array( 'role' => 'author' ) ); 63 54 64 self::$parent_1 = self::factory()->post->create( 55 65 array( 56 'post_type' => 'page', 57 'post_title' => 'Parent 1', 58 'post_date' => $post_date, 66 'post_author' => self::$editor, 67 'post_type' => 'page', 68 'post_title' => 'Parent 1', 69 'post_date' => $post_date, 59 70 ) 60 71 ); 61 62 self::$author = self::factory()->user->create( array( 'role' => 'author' ) );63 72 64 73 self::$parent_2 = self::factory()->post->create(
Note: See TracChangeset
for help on using the changeset viewer.