[wp-trac] [WordPress Trac] #39975: Remove direct calls to '/tmp/' in Unit Tests

WordPress Trac noreply at wordpress.org
Mon Feb 27 15:45:49 UTC 2017


#39975: Remove direct calls to '/tmp/' in Unit Tests
------------------------------+-----------------------------
 Reporter:  joemcgill         |      Owner:
     Type:  task (blessed)    |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  needs-patch
  Focuses:                    |
------------------------------+-----------------------------
 As noted by @mikeschroder in
 [https://core.trac.wordpress.org/ticket/39875#comment:20 39875], there are
 several places in our unit tests where we assume the temp directory is
 '/tmp/' and make direct calls. Instead, we should use something like
 `wp_tempnam()` to ensure we're writing and removing files from the right
 place during tests.

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


More information about the wp-trac mailing list