Skip to content

Commit

Permalink
tests: set content url to example.com
Browse files Browse the repository at this point in the history
  • Loading branch information
ravinderk committed Sep 19, 2023
1 parent 08a2fc6 commit d01a260
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/phpunit/SimpleLocalAvatarsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' )
Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit d01a260

Please sign in to comment.