@@ -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