Changeset 37649
- Timestamp:
- 06/06/2016 11:42:43 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/wpSetObjectTerms.php
r37647 r37649 319 319 320 320 $this->assertNotEmpty( $tt_ids ); 321 $term = get_term ($tt_ids[0] );321 $term = get_term_by( 'term_taxonomy_id', $tt_ids[0] ); 322 322 $this->assertInstanceOf( 'WP_Term', $term ); 323 323 $this->assertSame( 'foo', $term->slug ); … … 336 336 337 337 $this->assertNotEmpty( $tt_ids ); 338 $term = get_term ($tt_ids[0] );338 $term = get_term_by( 'term_taxonomy_id', $tt_ids[0] ); 339 339 $this->assertInstanceOf( 'WP_Term', $term ); 340 340 $this->assertSame( $t, $term->term_id ); … … 353 353 354 354 $this->assertNotEmpty( $tt_ids ); 355 $term = get_term ($tt_ids[0] );355 $term = get_term_by( 'term_taxonomy_id', $tt_ids[0] ); 356 356 $this->assertInstanceOf( 'WP_Term', $term ); 357 357 $this->assertSame( $t, $term->term_id ); … … 376 376 377 377 $this->assertNotEmpty( $tt_ids ); 378 $term = get_term ($tt_ids[0] );378 $term = get_term_by( 'term_taxonomy_id', $tt_ids[0] ); 379 379 $this->assertInstanceOf( 'WP_Term', $term ); 380 380 $this->assertSame( $t2, $term->term_id );
Note: See TracChangeset
for help on using the changeset viewer.