diff --git a/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php index c47a16cad9694944f249794a50537a228455efa4..d3cb45cc88e66310988e9745e30a98b27fcc4190 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php +++ b/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php @@ -2077,29 +2077,6 @@ class GeneralUtilityTest extends UnitTestCase self::assertSame($expectation, GeneralUtility::jsonEncodeForJavaScript($value)); } - /////////////////////////////// - // Tests concerning fixPermissions - /////////////////////////////// - /** - * @test - * @requires function posix_getegid - */ - public function fixPermissionsSetsGroup(): void - { - if (Environment::isWindows()) { - self::markTestSkipped(self::NO_FIX_PERMISSIONS_ON_WINDOWS); - } - // Create and prepare test file - $filename = $this->getVirtualTestDir() . '/' . StringUtility::getUniqueId('test_'); - GeneralUtilityFilesystemFixture::writeFileToTypo3tempDir($filename, '42'); - $currentGroupId = posix_getegid(); - // Set target group and run method - $GLOBALS['TYPO3_CONF_VARS']['SYS']['createGroup'] = $currentGroupId; - GeneralUtilityFilesystemFixture::fixPermissions($filename); - clearstatcache(); - self::assertEquals($currentGroupId, filegroup($filename)); - } - /** * @test */