Changeset 52010 for trunk/tests/phpunit/tests/post/getPages.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/getPages.php
r51462 r52010 9 9 * @ticket 23167 10 10 */ 11 function test_get_pages_cache() {11 public function test_get_pages_cache() { 12 12 global $wpdb; 13 13 … … 250 250 * @ticket 20376 251 251 */ 252 function test_get_pages_meta() {252 public function test_get_pages_meta() { 253 253 $posts = self::factory()->post->create_many( 3, array( 'post_type' => 'page' ) ); 254 254 add_post_meta( $posts[0], 'some-meta-key', '0' ); … … 284 284 * @ticket 22074 285 285 */ 286 function test_get_pages_include_exclude() {286 public function test_get_pages_include_exclude() { 287 287 $page_ids = array(); 288 288 … … 310 310 * @ticket 9470 311 311 */ 312 function test_get_pages_parent() {312 public function test_get_pages_parent() { 313 313 $page_id1 = self::factory()->post->create( array( 'post_type' => 'page' ) ); 314 314 $page_id2 = self::factory()->post->create( … … 368 368 * @ticket 22389 369 369 */ 370 function test_wp_dropdown_pages() {370 public function test_wp_dropdown_pages() { 371 371 self::factory()->post->create_many( 5, array( 'post_type' => 'page' ) ); 372 372 … … 379 379 * @ticket 22208 380 380 */ 381 function test_get_chidren_fields_ids() {381 public function test_get_chidren_fields_ids() { 382 382 $post_id = self::factory()->post->create(); 383 383 $child_ids = self::factory()->post->create_many( 5, array( 'post_parent' => $post_id ) ); … … 395 395 * @ticket 25750 396 396 */ 397 function test_get_pages_hierarchical_and_no_parent() {397 public function test_get_pages_hierarchical_and_no_parent() { 398 398 global $wpdb; 399 399 $page_1 = self::factory()->post->create( array( 'post_type' => 'page' ) ); … … 619 619 } 620 620 621 function test_wp_list_pages_classes() {621 public function test_wp_list_pages_classes() { 622 622 $type = 'taco'; 623 623 register_post_type( … … 652 652 } 653 653 654 function test_exclude_tree() {654 public function test_exclude_tree() { 655 655 $post_id1 = self::factory()->post->create( array( 'post_type' => 'page' ) ); 656 656 $post_id2 = self::factory()->post->create( … … 702 702 * @ticket 43514 703 703 */ 704 function test_get_pages_cache_empty() {704 public function test_get_pages_cache_empty() { 705 705 global $wpdb; 706 706
Note: See TracChangeset
for help on using the changeset viewer.