You appear to be a bot. Output may be restricted
Description
Create test data before the tests run.
Usage
REST_Block_Renderer_Controller_Test::wpSetUpBeforeClass( $factory );
Parameters
- $factory
- ( WP_UnitTest_Factory ) required – Helper that lets us create fake data.
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/rest-api/rest-block-renderer-controller.php
Lines:
1 to 20 of 20
public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { self::$user_id = $factory->user->create( array( 'role' => 'editor', ) ); self::$author_id = $factory->user->create( array( 'role' => 'author', ) ); self::$post_id = $factory->post->create( array( 'post_title' => 'Test Post', ) ); }