Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
c7a2fcc4
Commit
c7a2fcc4
authored
Oct 13, 2020
by
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Classes/Core/Helper/HelperFile.php
View file @
c7a2fcc4
...
...
@@ -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
)
{
...
...
extension/Tests/Unit/Core/DeleteTest.php
View file @
c7a2fcc4
...
...
@@ -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);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment