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/import/parser.php

    r33250 r39174  
    3030            $parser = new $p;
    3131            $result = $parser->parse($file);
    32             $this->assertTrue( is_wp_error( $result ) );
     32            $this->assertWPError( $result );
    3333            $this->assertEquals( 'There was an error when reading this WXR file', $result->get_error_message() );
    3434        }
     
    4343                $parser = new $p;
    4444                $result = $parser->parse( $file );
    45                 $this->assertTrue( is_wp_error( $result ) );
     45                $this->assertWPError( $result );
    4646                $this->assertEquals( 'This does not appear to be a WXR file, missing/invalid WXR version number', $result->get_error_message() );
    4747            }
Note: See TracChangeset for help on using the changeset viewer.