[wp-trac] [WordPress Trac] #43038: Conditionally define temporary directories

WordPress Trac noreply at wordpress.org
Sun Jan 7 22:42:58 UTC 2018


#43038: Conditionally define temporary directories
------------------------------+-----------------------------
 Reporter:  Clorith           |      Owner:
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  has-patch
  Focuses:                    |
------------------------------+-----------------------------
 Unit-tests currently make use of the `/tmp/` directory for things like
 media files in various places.

 Not all systems have their temporary directory defined in such a way, in
 my case on a Windows system.

 By providing a new `DIR_TEST_TMP` constant we can conditionally set the
 temporary path in `bootstrap.php` and allow tests to be ran more reliably
 on other systems as well.

 This of course includes updating existing tests with the `/tmp/` path
 hardcoded to be updated to reflect the new constant.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43038>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list