mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 09:10:06 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@48464 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -8,9 +8,7 @@ class Tests_File extends WP_UnitTestCase {
|
||||
function setUp() {
|
||||
parent::setUp();
|
||||
|
||||
$file = tempnam( '/tmp', 'foo' );
|
||||
$this->dir = dirname( $file );
|
||||
unlink( $file );
|
||||
$this->dir = untrailingslashit( get_temp_dir() );
|
||||
|
||||
$this->badchars = '"\'[]*&?$';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user