Code Duplication    Length = 15-15 lines in 2 locations

tests/phpunit/tests/comment/query.php 2 locations

@@ 1241-1255 (lines=15) @@
1238
    /**
1239
     * @ticket 19623
1240
     */
1241
    public function test_get_comments_with_include_unapproved_user_id_array() 
1242
    {
1243
        $c1 = self::factory()->comment->create(array( 'comment_post_ID' => self::$post_id, 'user_id' => 7, 'comment_approved' => '1' ));
1244
        $c2 = self::factory()->comment->create(array( 'comment_post_ID' => self::$post_id, 'user_id' => 1, 'comment_approved' => '1' ));
1245
        $c3 = self::factory()->comment->create(array( 'comment_post_ID' => self::$post_id, 'user_id' => 1, 'comment_approved' => '0' ));
1246
        $c4 = self::factory()->comment->create(array( 'comment_post_ID' => self::$post_id, 'user_id' => 6, 'comment_approved' => '0' ));
1247
        $c5 = self::factory()->comment->create(array( 'comment_post_ID' => self::$post_id, 'user_id' => 8, 'comment_approved' => '0' ));
1248
1249
        $found = get_comments(
1250
            array(
1251
            'fields' => 'ids',
1252
            'include_unapproved' => array( 1, 8 ),
1253
            'status' => 'approve',
1254
            ) 
1255
        );
1256
1257
        $this->assertEqualSets(array( $c1, $c2, $c3, $c5 ), $found);
1258
    }
@@ 1263-1277 (lines=15) @@
1260
    /**
1261
     * @ticket 19623
1262
     */
1263
    public function test_get_comments_with_include_unapproved_user_id_comma_separated() 
1264
    {
1265
        $c1 = self::factory()->comment->create(array( 'comment_post_ID' => self::$post_id, 'user_id' => 7, 'comment_approved' => '1' ));
1266
        $c2 = self::factory()->comment->create(array( 'comment_post_ID' => self::$post_id, 'user_id' => 1, 'comment_approved' => '1' ));
1267
        $c3 = self::factory()->comment->create(array( 'comment_post_ID' => self::$post_id, 'user_id' => 1, 'comment_approved' => '0' ));
1268
        $c4 = self::factory()->comment->create(array( 'comment_post_ID' => self::$post_id, 'user_id' => 6, 'comment_approved' => '0' ));
1269
        $c5 = self::factory()->comment->create(array( 'comment_post_ID' => self::$post_id, 'user_id' => 8, 'comment_approved' => '0' ));
1270
1271
        $found = get_comments(
1272
            array(
1273
            'fields' => 'ids',
1274
            'include_unapproved' => '1,8',
1275
            'status' => 'approve',
1276
            ) 
1277
        );
1278
1279
        $this->assertEqualSets(array( $c1, $c2, $c3, $c5 ), $found);
1280
    }