Repository navigation
Commit 5e793e5
committed
Tests: Use a file path for cropped site icon attachments.
Copy the parent image into the uploads directory and pass the resulting file path to WP_Site_Icon::insert_attachment(), matching the production call. Assert that the copy succeeds before inserting the attachment.
This prevents attachment metadata generation from opening a URL over HTTP and waiting for socket timeouts when the test domain includes a port.
Developed in: #13661
Props lucatume, adrianmoldovanwp.
Fixes #66159.
git-svn-id: https://develop.svn.wordpress.org/trunk@63874 602fd350-edb4-49c9-b593-d223f7449a821 parent a17e87d commit 5e793e5
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| |||
0 commit comments