Changeset 49603 for trunk/tests/phpunit/tests/blocks/block-type.php
- Timestamp:
- 11/15/2020 01:59:32 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/block-type.php
r48939 r49603 46 46 * @since 5.0.0 47 47 */ 48 public static function wpSetUpBeforeClass( ) {49 self::$editor_user_id = self::factory()->user->create(48 public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { 49 self::$editor_user_id = $factory->user->create( 50 50 array( 51 51 'role' => 'editor', … … 53 53 ); 54 54 55 self::$post_with_blocks = self::factory()->post->create(55 self::$post_with_blocks = $factory->post->create( 56 56 array( 57 57 'post_title' => 'Example', … … 60 60 ); 61 61 62 self::$post_without_blocks = self::factory()->post->create(62 self::$post_without_blocks = $factory->post->create( 63 63 array( 64 64 'post_title' => 'Example',
Note: See TracChangeset
for help on using the changeset viewer.