Automattic\WP\Cron_Control\Tests\REST_API_Tests::setUp PHP Method

setUp() public method

Prepare for REST API tests
public setUp ( )
    public function setUp()
    {
        parent::setUp();
        global $wp_rest_server;
        $this->server = $wp_rest_server = new \WP_REST_Server();
        do_action('rest_api_init');
    }