Skip to content

Commit 7c6c4ad

Browse files
Update query.php
Co-authored-by: Weston Ruter <[email protected]>
1 parent 03ab3f1 commit 7c6c4ad

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

tests/phpunit/tests/comment/query.php

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5392,25 +5392,26 @@ public function test_query_does_not_have_leading_whitespace() {
53925392
* @return int[] Array of comment IDs indexed by type: [0] => regular comment, [1] => pingback, [2] => note.
53935393
*/
53945394
protected function create_note_type_test_comments() {
5395-
$comments = array();
5396-
$comments[0] = self::factory()->comment->create(
5397-
array(
5398-
'comment_post_ID' => self::$post_id,
5399-
'comment_approved' => '1',
5400-
)
5401-
);
5402-
$comments[1] = self::factory()->comment->create(
5403-
array(
5404-
'comment_post_ID' => self::$post_id,
5405-
'comment_approved' => '1',
5406-
'comment_type' => 'pingback',
5407-
)
5408-
);
5409-
$comments[2] = self::factory()->comment->create(
5410-
array(
5411-
'comment_post_ID' => self::$post_id,
5412-
'comment_approved' => '1',
5413-
'comment_type' => 'note',
5395+
$comments = array(
5396+
'comment' => self::factory()->comment->create(
5397+
array(
5398+
'comment_post_ID' => self::$post_id,
5399+
'comment_approved' => '1',
5400+
)
5401+
),
5402+
'pingback' => self::factory()->comment->create(
5403+
array(
5404+
'comment_post_ID' => self::$post_id,
5405+
'comment_approved' => '1',
5406+
'comment_type' => 'pingback',
5407+
)
5408+
),
5409+
'note' => self::factory()->comment->create(
5410+
array(
5411+
'comment_post_ID' => self::$post_id,
5412+
'comment_approved' => '1',
5413+
'comment_type' => 'note',
5414+
)
54145415
)
54155416
);
54165417

0 commit comments

Comments
 (0)