Changeset 39174 for trunk/tests/phpunit/tests/term/wpUpdateTerm.php
- Timestamp:
- 11/09/2016 12:01:42 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/term/wpUpdateTerm.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/wpUpdateTerm.php
r37593 r39174 8 8 $found = wp_update_term( 1, 'bar' ); 9 9 10 $this->assert True( is_wp_error( $found ));10 $this->assertWPError( $found ); 11 11 $this->assertSame( 'invalid_taxonomy', $found->get_error_code() ); 12 12 } … … 15 15 $found = wp_update_term( '', 'post_tag' ); 16 16 17 $this->assert True( is_wp_error( $found ));17 $this->assertWPError( $found ); 18 18 $this->assertSame( 'invalid_term', $found->get_error_code() ); 19 19 } … … 61 61 ) ); 62 62 63 $this->assert True( is_wp_error( $found ));63 $this->assertWPError( $found ); 64 64 $this->assertSame( 'empty_term_name', $found->get_error_code() ); 65 65 _unregister_taxonomy( 'wptests_tax' );
Note: See TracChangeset
for help on using the changeset viewer.