Make WordPress Core


Ignore:
Timestamp:
11/09/2016 12:01:42 AM (9 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/getTheTerms.php

    r38398 r39174  
    144144        $p = self::$post_ids[0];
    145145        $terms = get_the_terms( $p, 'this-taxonomy-does-not-exist' );
    146         $this->assertTrue( is_wp_error( $terms ) );
     146        $this->assertWPError( $terms );
    147147    }
    148148
Note: See TracChangeset for help on using the changeset viewer.