File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
tests/phpunit/tests/theme Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ public function test_get_uploaded_header_images_caches() {
4242 $ expected = array (
4343 $ cropped_1_id => array (
4444 'attachment_id ' => $ cropped_1_id ,
45- 'url ' => ' http://example.org /wp-content/uploads/foo-cropped-1.png ' ,
46- 'thumbnail_url ' => ' http://example.org /wp-content/uploads/foo-cropped-1.png ' ,
45+ 'url ' => get_site_url () . ' /wp-content/uploads/foo-cropped-1.png ' ,
46+ 'thumbnail_url ' => get_site_url () . ' /wp-content/uploads/foo-cropped-1.png ' ,
4747 'alt_text ' => '' ,
4848 'attachment_parent ' => $ id ,
4949 ),
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ public function test_invalidate_header_images_cache_meta_updated() {
4242 $ expected = array (
4343 $ cropped_1_id => array (
4444 'attachment_id ' => $ cropped_1_id ,
45- 'url ' => ' http://example.org /wp-content/uploads/foo-cropped-1.png ' ,
46- 'thumbnail_url ' => ' http://example.org /wp-content/uploads/foo-cropped-1.png ' ,
45+ 'url ' => get_site_url () . ' /wp-content/uploads/foo-cropped-1.png ' ,
46+ 'thumbnail_url ' => get_site_url () . ' /wp-content/uploads/foo-cropped-1.png ' ,
4747 'alt_text ' => '' ,
4848 'attachment_parent ' => $ id ,
4949 ),
@@ -95,8 +95,8 @@ public function test_invalidate_header_images_cache_meta_deleted() {
9595 $ expected = array (
9696 $ cropped_1_id => array (
9797 'attachment_id ' => $ cropped_1_id ,
98- 'url ' => ' http://example.org /wp-content/uploads/foo-cropped-1.png ' ,
99- 'thumbnail_url ' => ' http://example.org /wp-content/uploads/foo-cropped-1.png ' ,
98+ 'url ' => get_site_url () . ' /wp-content/uploads/foo-cropped-1.png ' ,
99+ 'thumbnail_url ' => get_site_url () . ' /wp-content/uploads/foo-cropped-1.png ' ,
100100 'alt_text ' => '' ,
101101 'attachment_parent ' => $ id ,
102102 ),
You can’t perform that action at this time.
0 commit comments