| @@ 2307-2322 (lines=16) @@ | ||
| 2304 | /** |
|
| 2305 | * @ticket 33882 |
|
| 2306 | */ |
|
| 2307 | public function test_parent__in() |
|
| 2308 | { |
|
| 2309 | $c1 = self::factory()->comment->create(array( 'comment_post_ID' => self::$post_id, 'comment_approved' => '1' )); |
|
| 2310 | $c2 = self::factory()->comment->create( |
|
| 2311 | array( |
|
| 2312 | 'comment_post_ID' => self::$post_id, |
|
| 2313 | 'comment_approved' => '1', |
|
| 2314 | 'comment_parent' => $c1, |
|
| 2315 | ) |
|
| 2316 | ); |
|
| 2317 | ||
| 2318 | $ids = new WP_Comment_Query( |
|
| 2319 | array( |
|
| 2320 | 'comment_post_ID' => self::$post_id, |
|
| 2321 | 'fields' => 'ids', |
|
| 2322 | 'parent__in' => array( $c1 ) |
|
| 2323 | ) |
|
| 2324 | ); |
|
| 2325 | ||
| @@ 2370-2386 (lines=17) @@ | ||
| 2367 | /** |
|
| 2368 | * @ticket 33882 |
|
| 2369 | */ |
|
| 2370 | public function test_parent__not_in() |
|
| 2371 | { |
|
| 2372 | $c1 = self::factory()->comment->create(array( 'comment_post_ID' => self::$post_id, 'comment_approved' => '1' )); |
|
| 2373 | ||
| 2374 | self::factory()->comment->create( |
|
| 2375 | array( |
|
| 2376 | 'comment_post_ID' => self::$post_id, |
|
| 2377 | 'comment_approved' => '1', |
|
| 2378 | 'comment_parent' => $c1, |
|
| 2379 | ) |
|
| 2380 | ); |
|
| 2381 | ||
| 2382 | $ids = new WP_Comment_Query( |
|
| 2383 | array( |
|
| 2384 | 'comment_post_ID' => self::$post_id, |
|
| 2385 | 'fields' => 'ids', |
|
| 2386 | 'parent__not_in' => array( $c1 ) |
|
| 2387 | ) |
|
| 2388 | ); |
|
| 2389 | ||