diff --git a/tests/phpunit/SimpleLocalAvatarsTest.php b/tests/phpunit/SimpleLocalAvatarsTest.php index 71d87fba..67ae2a8a 100644 --- a/tests/phpunit/SimpleLocalAvatarsTest.php +++ b/tests/phpunit/SimpleLocalAvatarsTest.php @@ -69,7 +69,7 @@ public function setUp(): void { ->andReturn( '/avatar.png' ); WP_Mock::userFunction( 'content_url' ) - ->andReturn( 'http://localhost/simple-local-avatar/wp-content' ); + ->andReturn( 'https://example.com/' ); WP_Mock::userFunction( 'admin_url' ) ->with( 'options-discussion.php' ) @@ -207,7 +207,7 @@ public function test_get_simple_local_avatar_url_media_file_deleted() { WP_Mock::userFunction( 'get_attached_file' ) ->with( 102 ) ->andReturn( false ); - + WP_Mock::userFunction( 'wp_get_attachment_image_url' ) ->with( 102, 'full' ) ->andReturn( false );