Conversation
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
|
Refreshed with current Validation passed: Limitation: this was a targeted replay; the new CI run provides the full matrix. |
Restores the remote URL in `Tests_Image_Functions::test_wp_crop_image_with_url()` and tags the test `external-http`, so it no longer runs by default and needs no network, but still covers cropping a remote image when that group runs. See #65893. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Refreshed this against trunk and changed one thing.
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The crop test remains network-dependent despite the summary claiming replacement with a local fixture.
Review effort: Balanced
Findings: 1
What changed in this PR
Improves isolation and stability of randomized media PHPUnit tests.
Changes:
- Resets media optimization state between tests.
- Restores HTTPS state and derives uploaded filenames dynamically.
- Reclassifies a live crop test as external HTTP.
| File | Description |
|---|---|
tests/phpunit/tests/post/attachments.php |
Restores HTTPS state and supports randomized upload names. |
tests/phpunit/tests/media.php |
Resets media state and accepts generated caption IDs. |
tests/phpunit/tests/image/functions.php |
Marks the live crop test as external HTTP. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Reset loading-optimization state before each media test, accept valid generated caption-ID suffixes, and derive expected attachment filenames from the uploaded files. Restore the incoming HTTPS server value after attachment tests. Group the remote image-cropping test under external-http, preserving its remote-fetch coverage while keeping it out of the default test run. Developed in: #13190 Props jonsurrell, adrianmoldovanwp. See #65893. git-svn-id: https://develop.svn.wordpress.org/trunk@64042 602fd350-edb4-49c9-b593-d223f7449a82
|
PR #13190 landed in https://core.trac.wordpress.org/changeset/64042 |
Reset loading-optimization state before each media test, accept valid generated caption-ID suffixes, and derive expected attachment filenames from the uploaded files. Restore the incoming HTTPS server value after attachment tests. Group the remote image-cropping test under external-http, preserving its remote-fetch coverage while keeping it out of the default test run. Developed in: WordPress/wordpress-develop#13190 Props jonsurrell, adrianmoldovanwp. See #65893. Built from https://develop.svn.wordpress.org/trunk@64042 git-svn-id: http://core.svn.wordpress.org/trunk@63201 1a063a9b-81f0-0310-95a4-ce76da25c4cd

Summary
Verification
git diff --checkpassed.Trac: https://core.trac.wordpress.org/ticket/65893