diff --git a/test/phpunit/CMailFileTest.php b/test/phpunit/CMailFileTest.php index d0b5d480a82..0cf5aa83216 100644 --- a/test/phpunit/CMailFileTest.php +++ b/test/phpunit/CMailFileTest.php @@ -155,8 +155,8 @@ class CMailFileTest extends CommonClassTest $msg .= '

From wikipedia

Red dot'; $msg .= ''; - - $localobject = new CMailFile('Test', 'test@test.com', 'from@from.com', $msg, array(), array(), array(), '', '', 0, -1, '', '', '', '', 'standard', '', '/tmp'); + $tmp_dir = $conf->admin->dir_temp.'/'.__FUNCTION__.getmypid().'_tmp'; + $localobject = new CMailFile('Test', 'test@test.com', 'from@from.com', $msg, array(), array(), array(), '', '', 0, -1, '', '', '', '', 'standard', '', $tmp_dir); $result = count($localobject->html_images); print __METHOD__ . " result count image detected in the mail=" . $result . "\n";