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

WordPress Trac noreply at wordpress.org
Mon Nov 3 15:14:40 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-patch has-unit-tests has-test-   |     Focuses:  tests
  info dev-feedback                              |
-------------------------------------------------+-------------------------

Comment (by SirLouen):

 Replying to [comment:17 mindctrl]:
 > > the Docker environment included in WordPress-Develop shares the
 uploads directory for both the installation and the test suite.
 > ...
 > > For the test suite, could we filter the uploads path and URL to use
 wp-content/test-suite-uploads/ as a disposable location for attachment
 tests?
 >
 > I like this idea. Thoughts @SirLouen?

 It makes sense to me to avoid unnecessary collisions.

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


More information about the wp-trac mailing list