Make WordPress Core


Ignore:
Timestamp:
05/06/2024 06:39:15 PM (13 months ago)
Author:
johnbillion
Message:

Build/Test Tools: Standardise the assertions for remote HTTP request tests.

This ensures that as much information as possible is shown when an HTTP request fails during an external HTTP test.

Fixes #61148

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/readme.php

    r57689 r58108  
    9595
    9696        $this->skipTestOnTimeout( $response );
     97        $this->assertNotWPError( $response );
    9798
    9899        $response_code = wp_remote_retrieve_response_code( $response );
Note: See TracChangeset for help on using the changeset viewer.