Make WordPress Core

Changeset 1205 in tests for trunk/tests/http/base.php


Ignore:
Timestamp:
02/11/2013 07:04:04 AM (12 years ago)
Author:
dd32
Message:

WP_HTTP Api tests: Ensure that the result is not a WP_Error, skipping this test can cause an uncaught fatal. It looks like the other test cases all catch this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/http/base.php

    r951 r1205  
    139139        // Prints PASS on initial load, FAIL if the client follows the specified redirection
    140140        $res = wp_remote_request( $this->redirection_script . '?200-location=true' );
     141        $this->assertFalse( is_wp_error( $res ) );
    141142        $this->assertEquals( 'PASS', $res['body']);
    142143    }
Note: See TracChangeset for help on using the changeset viewer.