Skip to content

Commit

Permalink
one more try at fixing travis #246
Browse files Browse the repository at this point in the history
  • Loading branch information
markkap committed Apr 25, 2019
1 parent 17b20b2 commit d8087a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/phpunit/tests/rest-api/rest-schema-setup.php
Expand Up @@ -74,7 +74,9 @@ public function mock_embed_request( $preempt, $r, $url ) {
public function test_expected_routes_in_schema() {
update_option( 'calm_embedding_on', 0 );

do_action( 'init' );
global $wp_rest_server;
$wp_rest_server = new Spy_REST_Server;
do_action( 'rest_api_init', $wp_rest_server );

$routes = rest_get_server()->get_routes();

Expand Down

0 comments on commit d8087a6

Please sign in to comment.