Make WordPress Core


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

    r37593 r39174  
    88                $found = wp_update_term( 1, 'bar' );
    99
    10                 $this->assertTrue( is_wp_error( $found ) );
     10                $this->assertWPError( $found );
    1111                $this->assertSame( 'invalid_taxonomy', $found->get_error_code() );
    1212        }
    … …  
    1515                $found = wp_update_term( '', 'post_tag' );
    1616
    17                 $this->assertTrue( is_wp_error( $found ) );
     17                $this->assertWPError( $found );
    1818                $this->assertSame( 'invalid_term', $found->get_error_code() );
    1919        }
    … …  
    6161                ) );
    6262
    63                 $this->assertTrue( is_wp_error( $found ) );
     63                $this->assertWPError( $found );
    6464                $this->assertSame( 'empty_term_name', $found->get_error_code() );
    6565                _unregister_taxonomy( 'wptests_tax' );
Note: See TracChangeset for help on using the changeset viewer.