Changeset 52382 for trunk/tests/phpunit/tests/http/wpGetHttpHeaders.php
- Timestamp:
- 12/15/2021 07:59:32 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/http/wpGetHttpHeaders.php
r51568 r52382 13 13 parent::set_up(); 14 14 15 // Hook a fakeHTTP request response.16 add_filter( 'pre_http_request', array( $this, ' fake_http_request' ), 10, 3 );15 // Hook a mocked HTTP request response. 16 add_filter( 'pre_http_request', array( $this, 'mock_http_request' ), 10, 3 ); 17 17 } 18 18 … … 48 48 * @param array $arguments Request arguments. 49 49 * @param string $url Request URL. 50 *51 50 * @return array|bool 52 51 */ 53 public function fake_http_request( $false, $arguments, $url ) {52 public function mock_http_request( $false, $arguments, $url ) { 54 53 if ( 'http://example.com' === $url ) { 55 54 return array( 'headers' => true );
Note: See TracChangeset
for help on using the changeset viewer.