You appear to be a bot. Output may be restricted
Description
Usage
WP_Test_REST_Application_Passwords_Controller::test_introspect_item_password_invalid();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/rest-api/rest-application-passwords-controller.php
Lines:
1 to 13 of 13
public function test_introspect_item_password_invalid() { $this->setup_app_password_authenticated_request(); add_action( 'application_password_did_authenticate', static function() { $GLOBALS['wp_rest_application_password_uuid'] = 'invalid_uuid'; } ); $response = rest_do_request( '/wp/v2/users/me/application-passwords/introspect' ); $this->assertErrorResponse( 'rest_application_password_not_found', $response, 500 ); }