REST API: Add test case for users/me
endpoint that the context
param defaults to view
.
Props danielbachhuber. See #38842. git-svn-id: https://develop.svn.wordpress.org/trunk@39293 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7552367e7a
commit
2916ca534c
@ -678,6 +678,7 @@ class WP_Test_REST_Users_Controller extends WP_Test_REST_Controller_Testcase {
|
|||||||
|
|
||||||
$response = $this->server->dispatch( $request );
|
$response = $this->server->dispatch( $request );
|
||||||
$this->assertEquals( 200, $response->get_status() );
|
$this->assertEquals( 200, $response->get_status() );
|
||||||
|
$this->check_get_user_response( $response, 'view' );
|
||||||
|
|
||||||
$headers = $response->get_headers();
|
$headers = $response->get_headers();
|
||||||
$this->assertArrayNotHasKey( 'Location', $headers );
|
$this->assertArrayNotHasKey( 'Location', $headers );
|
||||||
|
Loading…
Reference in New Issue
Block a user