Skip to content

Commit 1b4c90c

Browse files
phpcbf
1 parent d556331 commit 1b4c90c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/phpunit/tests/comment/query.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5409,7 +5409,7 @@ public function test_query_does_not_have_leading_whitespace() {
54095409
* @return int[] Array of comment IDs indexed by type: [0] => regular comment, [1] => pingback, [2] => note.
54105410
*/
54115411
protected function create_note_type_test_comments() {
5412-
$comments = array();
5412+
$comments = array();
54135413
$comments[0] = self::factory()->comment->create(
54145414
array(
54155415
'comment_post_ID' => self::$post_id,
@@ -5449,8 +5449,8 @@ public function test_note_type_exclusion( $query_args, $expected_indices ) {
54495449
$comments = $this->create_note_type_test_comments();
54505450

54515451
$query_args['fields'] = 'ids';
5452-
$q = new WP_Comment_Query();
5453-
$found = $q->query( $query_args );
5452+
$q = new WP_Comment_Query();
5453+
$found = $q->query( $query_args );
54545454

54555455
$expected = array();
54565456
foreach ( $expected_indices as $index ) {
@@ -5469,35 +5469,35 @@ public function test_note_type_exclusion( $query_args, $expected_indices ) {
54695469
*/
54705470
public function data_note_type_exclusion() {
54715471
return array(
5472-
'default query excludes note' => array(
5472+
'default query excludes note' => array(
54735473
'query_args' => array(),
54745474
'expected_indices' => array( 0, 1 ), // comment and pingback.
54755475
),
5476-
'empty type parameter excludes note' => array(
5476+
'empty type parameter excludes note' => array(
54775477
'query_args' => array( 'type' => '' ),
54785478
'expected_indices' => array( 0, 1 ), // comment and pingback.
54795479
),
5480-
'type all includes note' => array(
5480+
'type all includes note' => array(
54815481
'query_args' => array( 'type' => 'all' ),
54825482
'expected_indices' => array( 0, 1, 2 ), // comment, pingback, and note.
54835483
),
5484-
'explicit note type' => array(
5484+
'explicit note type' => array(
54855485
'query_args' => array( 'type' => 'note' ),
54865486
'expected_indices' => array( 2 ), // only note.
54875487
),
5488-
'type__in with note' => array(
5488+
'type__in with note' => array(
54895489
'query_args' => array( 'type__in' => array( 'note' ) ),
54905490
'expected_indices' => array( 2 ), // only note.
54915491
),
5492-
'type__in with note and pingback' => array(
5492+
'type__in with note and pingback' => array(
54935493
'query_args' => array( 'type__in' => array( 'note', 'pingback' ) ),
54945494
'expected_indices' => array( 1, 2 ), // pingback and note.
54955495
),
5496-
'type pings excludes note' => array(
5496+
'type pings excludes note' => array(
54975497
'query_args' => array( 'type' => 'pings' ),
54985498
'expected_indices' => array( 1 ), // only pingback.
54995499
),
5500-
'type__not_in with note' => array(
5500+
'type__not_in with note' => array(
55015501
'query_args' => array( 'type__not_in' => array( 'note' ) ),
55025502
'expected_indices' => array( 0, 1 ), // comment and pingback.
55035503
),
@@ -5534,7 +5534,7 @@ public function test_note_type_not_duplicated_in_type__not_in() {
55345534
* @covers ::get_comment_count
55355535
*/
55365536
public function test_get_comment_count_excludes_note_type() {
5537-
$post_id = self::factory()->post->create();
5537+
$post_id = self::factory()->post->create();
55385538
$this->test_posts[] = $post_id;
55395539

55405540
$c1 = self::factory()->comment->create(

0 commit comments

Comments
 (0)