Changeset 54720
- Timestamp:
- 10/29/2022 03:57:48 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/Autosave.php
r53561 r54720 27 27 protected static $post; 28 28 protected static $post_id; 29 protected static $user_ids = array();30 29 31 30 public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { 32 31 self::$admin_id = $factory->user->create( array( 'role' => 'administrator' ) ); 33 self::$user_ids[] = self::$admin_id;34 32 self::$editor_id = $factory->user->create( array( 'role' => 'editor' ) ); 35 self::$user_ids[] = self::$editor_id;36 33 37 34 // Set a user so the $post has 'post_author'.
Note: See TracChangeset
for help on using the changeset viewer.