Commit 7111ddad authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Stabilize a unit test

When executed in random order, a parent directory
may not exist. Take care it's created when needed.

Resolves: #98060
Releases: main
Change-Id: I102aedc8013157527759111d8080a8ee012c7c8e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75338

Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent a9f673d9
......@@ -42,9 +42,6 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\StringUtility;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
/**
* Test case
*/
class GeneralUtilityTest extends UnitTestCase
{
public const NO_FIX_PERMISSIONS_ON_WINDOWS = 'fixPermissions() not available on Windows (method does nothing)';
......@@ -2935,6 +2932,7 @@ class GeneralUtilityTest extends UnitTestCase
{
$directoryName = StringUtility::getUniqueId('test_') . '.com';
$directoryPath = Environment::getVarPath() . '/tests/';
@mkdir($directoryPath, octdec($GLOBALS['TYPO3_CONF_VARS']['SYS']['folderCreateMask']));
$directory = $directoryPath . $directoryName;
mkdir($directory, octdec($GLOBALS['TYPO3_CONF_VARS']['SYS']['folderCreateMask']));
$fileInfo = GeneralUtility::split_fileref($directory);
......
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