[wp-trac] [WordPress Trac] #63532: Unit Testing: Checking if images already exists before starting tests

WordPress Trac noreply at wordpress.org
Tue Nov 4 18:58:26 UTC 2025


#63532: Unit Testing: Checking if images already exists before starting tests
-------------------------------------------------+-------------------------
 Reporter:  SirLouen                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.9
Component:  Media                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-unit-tests has-test-info dev-    |     Focuses:  tests
  feedback needs-patch                           |
-------------------------------------------------+-------------------------
Changes (by jorbin):

 * keywords:  has-patch has-unit-tests has-test-info dev-feedback => has-
     unit-tests has-test-info dev-feedback needs-patch


Comment:

 I agree with the idea to have the test suite use its own uploads
 directory. I think we can use the UPLOADS constant in
 tests/phpunit/includes/bootstrap.php (with a check to make sure it's not
 already defined) for this.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63532#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list