Changeset 52010 for trunk/tests/phpunit/tests/term.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term.php
r51454 r52010 50 50 * @ticket 5381 51 51 */ 52 function test_is_term_type() {52 public function test_is_term_type() { 53 53 // Insert a term. 54 54 $term = rand_str(); … … 65 65 * @ticket 15919 66 66 */ 67 function test_wp_count_terms() {67 public function test_wp_count_terms() { 68 68 $count = wp_count_terms( 69 69 array( … … 79 79 * @ticket 36399 80 80 */ 81 function test_wp_count_terms_legacy_interoperability() {81 public function test_wp_count_terms_legacy_interoperability() { 82 82 self::factory()->tag->create_many( 5 ); 83 83 … … 97 97 * @ticket 15475 98 98 */ 99 function test_wp_add_remove_object_terms() {99 public function test_wp_add_remove_object_terms() { 100 100 $posts = self::$post_ids; 101 101 $tags = self::factory()->tag->create_many( 5 ); … … 128 128 * @group category.php 129 129 */ 130 function test_term_is_ancestor_of() {130 public function test_term_is_ancestor_of() { 131 131 $term = rand_str(); 132 132 $term2 = rand_str(); … … 147 147 } 148 148 149 function test_wp_insert_delete_category() {149 public function test_wp_insert_delete_category() { 150 150 $term = rand_str(); 151 151 $this->assertNull( category_exists( $term ) ); … … 173 173 * @ticket 16550 174 174 */ 175 function test_wp_set_post_categories() {175 public function test_wp_set_post_categories() { 176 176 $post_id = self::$post_ids[0]; 177 177 $post = get_post( $post_id ); … … 212 212 * @ticket 43516 213 213 */ 214 function test_wp_set_post_categories_sets_default_category_for_custom_post_types() {214 public function test_wp_set_post_categories_sets_default_category_for_custom_post_types() { 215 215 add_filter( 'default_category_post_types', array( $this, 'filter_default_category_post_types' ) ); 216 216 … … 233 233 } 234 234 235 function filter_default_category_post_types( $post_types ) {235 public function filter_default_category_post_types( $post_types ) { 236 236 $post_types[] = 'cpt'; 237 237 return $post_types; … … 241 241 * @ticket 25852 242 242 */ 243 function test_sanitize_term_field() {243 public function test_sanitize_term_field() { 244 244 $term = wp_insert_term( 'foo', $this->taxonomy ); 245 245 … … 253 253 * @ticket 19205 254 254 */ 255 function test_orphan_category() {255 public function test_orphan_category() { 256 256 $cat_id1 = self::factory()->category->create(); 257 257
Note: See TracChangeset
for help on using the changeset viewer.