Make WordPress Core


Ignore:
Timestamp:
11/09/2016 12:01:42 AM (8 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Utilise assertWPError() and assertNotWPError() in more places.

See #38716

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/term/wpSetObjectTerms.php

    r38667 r39174  
    166166        // bogus taxonomy
    167167        $result = wp_set_object_terms( self::$post_ids[0], array(rand_str()), rand_str() );
    168         $this->assertTrue( is_wp_error($result) );
     168        $this->assertWPError( $result );
    169169    }
    170170
Note: See TracChangeset for help on using the changeset viewer.