@@ -4179,10 +4179,10 @@ public function test_get_items_type_arg_authenticated( $comment_type, $count ) {
41794179 $ this ->assertEquals ( 200 , $ response ->get_status () );
41804180
41814181 $ comments = $ response ->get_data ();
4182- $ this ->assertCount ( 'comment ' === $ comment_type ? $ count + self ::$ total_comments : $ count , $ comments );
4182+ $ this ->assertCount ( 'comment ' === $ comment_type ? $ count + self ::$ total_comments : $ count , $ comments );
41834183
41844184 // Next, test getting the individual comments.
4185- foreach ( $ comments as $ comment ) {
4185+ foreach ( $ comments as $ comment ) {
41864186 $ request = new WP_REST_Request ( 'GET ' , sprintf ( '/wp/v2/comments/%d ' , $ comment ['id ' ] ) );
41874187 $ response = rest_get_server ()->dispatch ( $ request );
41884188
@@ -4234,7 +4234,7 @@ public function test_get_items_type_arg_unauthenticated( $comment_type, $count )
42344234 }
42354235
42364236 // Individual comments.
4237- foreach ( $ comments as $ comment ) {
4237+ foreach ( $ comments as $ comment ) {
42384238 $ request = new WP_REST_Request ( 'GET ' , sprintf ( '/wp/v2/comments/%d ' , $ comment ) );
42394239 $ response = rest_get_server ()->dispatch ( $ request );
42404240
@@ -4244,6 +4244,4 @@ public function test_get_items_type_arg_unauthenticated( $comment_type, $count )
42444244 $ this ->assertEquals ( 'note ' === $ comment_type ? 401 : 200 , $ response ->get_status () );
42454245 }
42464246 }
4247-
4248-
42494247}
0 commit comments