Skip to content

Commit

Permalink
Fix fake request params
Browse files Browse the repository at this point in the history
  • Loading branch information
dlh01 committed Oct 24, 2023
1 parent d8adcea commit 7a1ff4f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion tests/extractor/test-feed-extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ public function test_extract_basic_auth() {
$_SERVER['__did_auth'] = false;

$this->fake_request(
'https://alley.com/feed/',
function ( string $url, array $args ) {
if ( ! empty( $args['headers']['Authorization'] ) ) {
$_SERVER['__did_auth'] = 'Basic ' . base64_encode( 'username:password' ) === $args['headers']['Authorization'];
Expand Down
1 change: 0 additions & 1 deletion tests/loader/test-post-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ function ( $args, $next ) {

public function test_image_on_posts() {
$this->fake_request(
'https://example.com/image.jpg',
function ( string $url, array $args ) {
$contents = file_get_contents( __DIR__ . '/../fixtures/alley.jpg' );

Expand Down

0 comments on commit 7a1ff4f

Please sign in to comment.