File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tests/phpunit/tests/rest-api Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4241,8 +4241,8 @@ public function test_get_items_type_arg_unauthenticated( $comment_type, $count )
42414241 $ request = new WP_REST_Request ( 'GET ' , sprintf ( '/wp/v2/comments/%d ' , $ comment ) );
42424242 $ response = rest_get_server ()->dispatch ( $ request );
42434243
4244- // Individual comments using the /comments/<id> endpoint can (unexpectedly) be
4245- // retrieved by unauthenticated users - except for the 'note' type which is restricted.
4244+ // Individual comments using the /comments/<id> endpoint can be retrieved by
4245+ // unauthenticated users - except for the 'note' type which is restricted.
42464246 // See https://core.trac.wordpress.org/ticket/44157.
42474247 $ this ->assertSame ( 'note ' === $ comment_type ? 401 : 200 , $ response ->get_status (), 'Individual comment endpoint did not return the expected status ' );
42484248 }
You can’t perform that action at this time.
0 commit comments