mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-09 07:04:34 +00:00
Build/Test Tools: Utilise assertWPError() and assertNotWPError() in more places.
See #38716 git-svn-id: https://develop.svn.wordpress.org/trunk@39174 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -165,7 +165,7 @@ class Tests_Term_WpSetObjectTerms extends WP_UnitTestCase {
|
||||
function test_set_object_terms_invalid() {
|
||||
// bogus taxonomy
|
||||
$result = wp_set_object_terms( self::$post_ids[0], array(rand_str()), rand_str() );
|
||||
$this->assertTrue( is_wp_error($result) );
|
||||
$this->assertWPError( $result );
|
||||
}
|
||||
|
||||
public function test_wp_set_object_terms_append_true() {
|
||||
|
||||
Reference in New Issue
Block a user