Changeset 42645 for trunk/tests/phpunit/tests/term/getTermField.php
- Timestamp:
- 02/03/2018 05:10:51 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/getTermField.php
r42343 r42645 48 48 * @ticket 34245 49 49 */ 50 public function test_get_term_field_should_accept_a_WP_Term_ object_term_id_or_object() {50 public function test_get_term_field_should_accept_a_WP_Term_id_or_object() { 51 51 $term = self::factory()->term->create_and_get( array( 'taxonomy' => $this->taxonomy ) ); 52 52 53 53 $this->assertInstanceOf( 'WP_Term', $term ); 54 54 $this->assertSame( $term->term_id, get_term_field( 'term_id', $term ) ); 55 $this->assertSame( $term->term_id, get_term_ Field( 'term_id', $term->data ) );55 $this->assertSame( $term->term_id, get_term_field( 'term_id', $term->data ) ); 56 56 $this->assertSame( $term->term_id, get_term_field( 'term_id', $term->term_id ) ); 57 57 }
Note: See TracChangeset
for help on using the changeset viewer.