Make WordPress Core


Ignore:
Timestamp:
07/14/2020 01:28:17 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Tests: Replace hardcoded /tmp/ references with get_temp_dir().

This allows more tests to pass on Windows.

Props danielhuesken, DJPaul, christophherr, joemcgill, netweb, davidbaumwald, SergeyBiryukov.
Fixes #40856, #39975.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/upload.php

    r47122 r48464  
    4747     */
    4848    function test_upload_dir_absolute() {
    49         $path = '/tmp/wp-unit-test';
     49        $path = get_temp_dir() . 'wp-unit-test';
    5050
    5151        // wp_upload_dir() with an absolute upload path.
Note: See TracChangeset for help on using the changeset viewer.