Project

General

Profile

Actions

Bug #26423

closed

Fix unit test fixPermissionsSetsPermissionsWithRelativeFileReference

Added by Steffen Gebert over 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Tests
Target version:
-
Start date:
2011-04-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The test t3lib_divTest::fixPermissionsSetsPermissionsWithRelativeFileReference uses a (wrong) relative path to a test file in the chmod() call.

$filename = 'typo3temp/' . uniqid('test_');
t3lib_div::writeFileToTypo3tempDir(PATH_site . $filename, '42');
chmod($filename, 0742);

Thus the test fails with

PHP Warning: chmod() [<a href='function.chmod'>function.chmod</a>]: No such file or directory in /opt/local/apache2/vhosts/master/typo3_src/tests/t3lib/class.t3lib_divTest.php line 1900

Actions

Also available in: Atom PDF