Uh oh!
There was an error while loading. Please reload this page.
Tests: define UPLOADS constant for php unit. - #13065
Conversation
Points the test suite at a dedicated wp-content/test-suite-uploads directory instead of the real wp-content/uploads, so test runs don't write to actual site content. The directory wp-content/test-suite-uploads is deleted once before new tests run. Adds an _upload_get_url() helper and updates tests that previously hardcoded wp-content/uploads. Trac ticket: https://core.trac.wordpress.org/ticket/63532
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. |
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. |
…m:OlegApanovich/wordpress-develop into 63532-define-uploads-constant-for-phpunit
Points the test suite at a dedicated wp-content/test-suite-uploads directory instead of the real wp-content/uploads, so test runs don't write to actual site content.
The directory wp-content/test-suite-uploads is deleted once before new tests run.
Adds an _upload_get_url() helper and updates tests that previously hardcoded wp-content/uploads.
Trac ticket: https://core.trac.wordpress.org/ticket/63532
Use of AI Tools
AI assistance: Yes
Tool(s): Claude
Model(s): GPT-5.1
Used for: Only for simple, repetitive actions; all architectural decisions are mine alone.