Changeset 32117 for trunk/tests/phpunit/tests/term/wpUpdateTerm.php
- Timestamp:
- 04/13/2015 01:20:57 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/wpUpdateTerm.php
r31812 r32117 654 654 _unregister_taxonomy( 'wptests_tax' ); 655 655 } 656 657 /** 658 * @ticket 31954 659 */ 660 public function test_wp_update_term_with_null_get_term() { 661 $t = $this->factory->term->create( array( 'taxonomy' => 'category' ) ); 662 $found = wp_update_term( $t, 'post_tag', array( 'slug' => 'foo' ) ); 663 664 $this->assertWPError( $found ); 665 $this->assertSame( 'invalid_term', $found->get_error_code() ); 666 } 667 656 668 }
Note: See TracChangeset
for help on using the changeset viewer.