Skip to content
Snippets Groups Projects
Commit c7a2fcc4 authored by Marc Egger's avatar Marc Egger
Browse files

DeleteTest.php only create temp path if not exists

parent f4df2879
No related branches found
No related tags found
2 merge requests!302Develop,!296Marc: Form/Report As File, Path class, Config class, Typo3 v9 compatability
Pipeline #4001 failed
......@@ -544,7 +544,9 @@ class HelperFile {
try {
$success = mkdir($path, 0777, true);
} catch (\Error | \Exception $e) {
// DEBUG
Thrower::userFormException('HEREEEE: ' . $path . ' >>> MESSAGE: ' . $e->getMessage());
// END DEBUG
}
if ($success === false) {
......
......@@ -78,7 +78,10 @@ class DeleteTest extends AbstractDatabaseTest {
$this->store->setVar('form', 'TestFormName', STORE_TYPO3);
$this->previousCwdToApp = Path::cwdToApp();
mkdir('/tmp/deleteTest');
$tempAppDir = '/tmp/deleteTest';
if (!is_dir($tempAppDir)) {
mkdir('/tmp/deleteTest');
}
Path::setMainPaths('/tmp/deleteTest');
// The above replaces the following line with a Path:: function. Probably won't work.
// $this->store->setVar(SYSTEM_SITE_PATH_ABSOLUTE, '/tmp', STORE_SYSTEM, true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment