Changeset 35851 for branches/4.4/tests/phpunit/tests/term.php
- Timestamp:
- 12/10/2015 03:43:50 AM (9 years ago)
- Location:
- branches/4.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.4
-
branches/4.4/tests/phpunit/tests/term.php
r35246 r35851 628 628 $this->assertWPError( $cat_id2 ); 629 629 } 630 631 /** 632 * @ticket 34723 633 */ 634 function test_get_the_terms_should_return_wp_error_when_taxonomy_is_unregistered() { 635 $p = self::$post_ids[0]; 636 $terms = get_the_terms( $p, 'this-taxonomy-does-not-exist' ); 637 $this->assertTrue( is_wp_error( $terms ) ); 638 } 630 639 }
Note: See TracChangeset
for help on using the changeset viewer.