Skip to content

Commit 25a4050

Browse files
phpcbf
1 parent 4b04b7b commit 25a4050

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/phpunit/tests/rest-api/rest-comments-controller.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4150,19 +4150,19 @@ public function test_get_items_type_arg() {
41504150
'post_id' => self::$post_id,
41514151
);
41524152

4153-
$count_1 = 5;
4153+
$count_1 = 5;
41544154
$args['comment_type'] = $comment_type_1;
41554155
for ( $i = 0; $i < $count_1; $i++ ) {
41564156
self::factory()->comment->create( $args );
41574157
}
41584158

4159-
$count_2 = 9;
4159+
$count_2 = 9;
41604160
$args['comment_type'] = $comment_type_2;
41614161
for ( $i = 0; $i < $count_2; $i++ ) {
41624162
self::factory()->comment->create( $args );
41634163
}
41644164

4165-
$count_3 = 3;
4165+
$count_3 = 3;
41664166
$args['comment_type'] = $note_comment_type;
41674167
for ( $i = 0; $i < $count_3; $i++ ) {
41684168
self::factory()->comment->create( $args );
@@ -4206,7 +4206,7 @@ public function test_get_items_type_arg() {
42064206
$this->assertErrorResponse( 'rest_forbidden_param', $response, 401 );
42074207

42084208
$request->set_param( 'comment_type', $note_comment_type );
4209-
foreach( $note_type_ids as $note_type_id ) {
4209+
foreach ( $note_type_ids as $note_type_id ) {
42104210
$request = new WP_REST_Request( 'GET', sprintf( '/wp/v2/comments/%d', $note_type_id ) );
42114211
$response = rest_get_server()->dispatch( $request );
42124212
$this->assertEquals( 401, $response->get_status() );

0 commit comments

Comments
 (0)