Changeset 55590 for trunk/tests/phpunit/tests/post/getPages.php
- Timestamp:
- 03/24/2023 04:12:35 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/post/getPages.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/getPages.php
r55588 r55590 485 485 $pages = get_pages( array( 'parent' => array( $page_id1, $page_id2 ) ) ); 486 486 $this->assertSameSets( array( $page_id2, $page_id3, $page_id4 ), wp_list_pluck( $pages, 'ID' ) ); 487 }488 489 /**490 * @ticket 22389491 */492 public function test_wp_dropdown_pages() {493 self::factory()->post->create_many( 5, array( 'post_type' => 'page' ) );494 495 preg_match_all( '#<option#', wp_dropdown_pages( 'echo=0' ), $matches );496 497 $this->assertCount( 5, $matches[0] );498 487 } 499 488
Note: See TracChangeset
for help on using the changeset viewer.