Changeset 52010 for trunk/tests/phpunit/tests/term/getTerms.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/getTerms.php
r51568 r52010 5 5 */ 6 6 class Tests_Term_getTerms extends WP_UnitTestCase { 7 function set_up() {7 public function set_up() { 8 8 parent::set_up(); 9 9 … … 198 198 * @ticket 23506 199 199 */ 200 function test_get_terms_should_allow_arbitrary_indexed_taxonomies_array() {200 public function test_get_terms_should_allow_arbitrary_indexed_taxonomies_array() { 201 201 $term_id = self::factory()->tag->create(); 202 202 $terms = get_terms( array( '111' => 'post_tag' ), array( 'hide_empty' => false ) ); … … 207 207 * @ticket 13661 208 208 */ 209 function test_get_terms_fields() {209 public function test_get_terms_fields() { 210 210 $term_id1 = self::factory()->tag->create( 211 211 array( … … 289 289 * @ticket 11823 290 290 */ 291 function test_get_terms_include_exclude() {291 public function test_get_terms_include_exclude() { 292 292 global $wpdb; 293 293 … … 372 372 * @ticket 25710 373 373 */ 374 function test_get_terms_exclude_tree() {374 public function test_get_terms_exclude_tree() { 375 375 376 376 $term_id_uncategorized = get_option( 'default_category' ); … … 407 407 * @ticket 13992 408 408 */ 409 function test_get_terms_search() {409 public function test_get_terms_search() { 410 410 $term_id1 = self::factory()->tag->create( array( 'slug' => 'burrito' ) ); 411 411 $term_id2 = self::factory()->tag->create( array( 'name' => 'Wilbur' ) ); … … 426 426 * @ticket 8214 427 427 */ 428 function test_get_terms_like() {428 public function test_get_terms_like() { 429 429 $term_id1 = self::factory()->tag->create( 430 430 array( … … 524 524 * @ticket 26903 525 525 */ 526 function test_get_terms_parent_zero() {526 public function test_get_terms_parent_zero() { 527 527 $tax = 'food'; 528 528 register_taxonomy( $tax, 'post', array( 'hierarchical' => true ) ); … … 625 625 * @ticket 26903 626 626 */ 627 function test_get_terms_grandparent_zero() {627 public function test_get_terms_grandparent_zero() { 628 628 $tax = 'food'; 629 629 register_taxonomy( $tax, 'post', array( 'hierarchical' => true ) ); … … 670 670 * @ticket 26903 671 671 */ 672 function test_get_terms_seven_levels_deep() {672 public function test_get_terms_seven_levels_deep() { 673 673 $tax = 'deep'; 674 674 register_taxonomy( $tax, 'post', array( 'hierarchical' => true ) ); … … 706 706 * @ticket 27123 707 707 */ 708 function test_get_terms_child_of() {708 public function test_get_terms_child_of() { 709 709 $parent = self::factory()->category->create(); 710 710 $child = self::factory()->category->create( array( 'parent' => $parent ) ); … … 723 723 * @ticket 46768 724 724 */ 725 function test_get_terms_child_of_fields_id_name() {725 public function test_get_terms_child_of_fields_id_name() { 726 726 $parent = self::factory()->category->create(); 727 727 $child = self::factory()->category->create( … … 762 762 * @ticket 46768 763 763 */ 764 function test_get_terms_child_of_fields_id_slug() {764 public function test_get_terms_child_of_fields_id_slug() { 765 765 $parent = self::factory()->category->create(); 766 766 $child = self::factory()->category->create( … … 852 852 * @ticket 27123 853 853 */ 854 function test_get_term_children_recursion() {854 public function test_get_term_children_recursion() { 855 855 // Assume there is a way to insert a term with the parent pointing to itself. 856 856 // See: https://core.trac.wordpress.org/changeset/15806
Note: See TracChangeset
for help on using the changeset viewer.