Commit c7a2fcc4 authored by Marc Egger's avatar Marc Egger
Browse files

DeleteTest.php only create temp path if not exists

parent f4df2879
Pipeline #4001 failed with stages
in 2 minutes and 5 seconds
......@@ -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();
$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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment