| @@ 2332-2356 (lines=25) @@ | ||
| 2329 | /** |
|
| 2330 | * @ticket 33882 |
|
| 2331 | */ |
|
| 2332 | public function test_parent__in_commas() |
|
| 2333 | { |
|
| 2334 | $c1 = self::factory()->comment->create(array( 'comment_post_ID' => self::$post_id, 'comment_approved' => '1' )); |
|
| 2335 | $c2 = self::factory()->comment->create( |
|
| 2336 | array( |
|
| 2337 | 'comment_post_ID' => self::$post_id, |
|
| 2338 | 'comment_approved' => '1' |
|
| 2339 | ) |
|
| 2340 | ); |
|
| 2341 | $c3 = self::factory()->comment->create( |
|
| 2342 | array( |
|
| 2343 | 'comment_post_ID' => self::$post_id, |
|
| 2344 | 'comment_approved' => '1', |
|
| 2345 | 'comment_parent' => $c1, |
|
| 2346 | ) |
|
| 2347 | ); |
|
| 2348 | $c4 = self::factory()->comment->create( |
|
| 2349 | array( |
|
| 2350 | 'comment_post_ID' => self::$post_id, |
|
| 2351 | 'comment_approved' => '1', |
|
| 2352 | 'comment_parent' => $c2, |
|
| 2353 | ) |
|
| 2354 | ); |
|
| 2355 | ||
| 2356 | $ids = new WP_Comment_Query( |
|
| 2357 | array( |
|
| 2358 | 'comment_post_ID' => self::$post_id, |
|
| 2359 | 'fields' => 'ids', |
|
| @@ 2396-2421 (lines=26) @@ | ||
| 2393 | /** |
|
| 2394 | * @ticket 33882 |
|
| 2395 | */ |
|
| 2396 | public function test_parent__not_in_commas() |
|
| 2397 | { |
|
| 2398 | $c1 = self::factory()->comment->create(array( 'comment_post_ID' => self::$post_id, 'comment_approved' => '1' )); |
|
| 2399 | $c2 = self::factory()->comment->create( |
|
| 2400 | array( |
|
| 2401 | 'comment_post_ID' => self::$post_id, |
|
| 2402 | 'comment_approved' => '1' |
|
| 2403 | ) |
|
| 2404 | ); |
|
| 2405 | ||
| 2406 | self::factory()->comment->create( |
|
| 2407 | array( |
|
| 2408 | 'comment_post_ID' => self::$post_id, |
|
| 2409 | 'comment_approved' => '1', |
|
| 2410 | 'comment_parent' => $c1, |
|
| 2411 | ) |
|
| 2412 | ); |
|
| 2413 | self::factory()->comment->create( |
|
| 2414 | array( |
|
| 2415 | 'comment_post_ID' => self::$post_id, |
|
| 2416 | 'comment_approved' => '1', |
|
| 2417 | 'comment_parent' => $c2, |
|
| 2418 | ) |
|
| 2419 | ); |
|
| 2420 | ||
| 2421 | $ids = new WP_Comment_Query( |
|
| 2422 | array( |
|
| 2423 | 'comment_post_ID' => self::$post_id, |
|
| 2424 | 'fields' => 'ids', |
|