WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/27/2015 10:26:16 PM (6 years ago)
Author:
johnbillion
Message:

Switch several assertions to assertNotWPError() so more context is provided when the assertion fails.

File:
1 edited

Legend:

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

    r33652 r34646  
    189189        ) );
    190190
    191         $this->assertFalse( is_wp_error( $updated ) );
     191        $this->assertNotWPError( $updated );
    192192
    193193        $t1_term = get_term( $t1, 'wptests_tax' );
     
    219219        ) );
    220220
    221         $this->assertFalse( is_wp_error( $updated ) );
     221        $this->assertNotWPError( $updated );
    222222
    223223        $t2_term = get_term( $t2, 'wptests_tax_2' );
     
    257257        ) );
    258258
    259         $this->assertFalse( is_wp_error( $updated ) );
     259        $this->assertNotWPError( $updated );
    260260
    261261        $t3_term = get_term( $t3, 'wptests_tax' );
Note: See TracChangeset for help on using the changeset viewer.