Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -198,17 +198,26 @@ public function test_prepare_item() {
}

/**
* @doesNotPerformAssertions
* Navigation fallback does not register a context request parameter via get_context_param().
*
* @ticket 40538
*/
public function test_context_param() {
// Covered by the core test.
$request = new WP_REST_Request( 'OPTIONS', '/wp-block-editor/v1/navigation-fallback' );
$response = rest_get_server()->dispatch( $request );
$data = $response->get_data();

$this->assertSame( 200, $response->get_status() );
foreach ( $data['endpoints'] as $endpoint ) {
$this->assertArrayNotHasKey( 'context', $endpoint['args'] );
}
}

/**
* @doesNotPerformAssertions
*/
public function test_get_items() {
// Covered by the core test.
// Controller has no collection operation.
}

/**
Expand Down
Loading