Changeset 51021 for trunk/tests/phpunit/tests/blocks/block-editor.php
- Timestamp:
- 05/26/2021 01:10:57 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/block-editor.php
r50996 r51021 30 30 31 31 $post = $this->factory()->post->create_and_get( $args ); 32 33 global $wp_rest_server; 34 $wp_rest_server = new Spy_REST_Server; 35 do_action( 'rest_api_init', $wp_rest_server ); 36 } 37 38 public function tearDown() { 39 /** @var WP_REST_Server $wp_rest_server */ 40 global $wp_rest_server; 41 $wp_rest_server = null; 42 parent::tearDown(); 32 43 } 33 44
Note: See TracChangeset
for help on using the changeset viewer.