Changeset 51331 for trunk/tests/phpunit/tests/term/wpGetObjectTerms.php
- Timestamp:
- 07/05/2021 05:21:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/wpGetObjectTerms.php
r48939 r51331 74 74 $int_fields = array( 'parent', 'term_id', 'count', 'term_group', 'term_taxonomy_id', 'object_id' ); 75 75 foreach ( $int_fields as $field ) { 76 $this->assertI nternalType( 'int',$term->$field, $field );76 $this->assertIsInt( $term->$field, $field ); 77 77 } 78 78 79 79 $terms = wp_get_object_terms( $post_id, $this->taxonomy, array( 'fields' => 'ids' ) ); 80 80 $term = array_shift( $terms ); 81 $this->assertI nternalType( 'int',$term, 'term' );81 $this->assertIsInt( $term, 'term' ); 82 82 } 83 83 … … 94 94 remove_filter( 'wp_get_object_terms', array( $this, 'filter_get_object_terms' ) ); 95 95 foreach ( $terms as $term ) { 96 $this->assertI nternalType( 'object',$term );96 $this->assertIsObject( $term ); 97 97 } 98 98 }
Note: See TracChangeset
for help on using the changeset viewer.