[TASK] Remove test files created by GeneralUtilityTest 19/46119/2
authorWouter Wolters <typo3@wouterwolters.nl>
Wed, 20 Jan 2016 18:31:49 +0000 (19:31 +0100)
committerFrank Nägler <frank.naegler@typo3.org>
Wed, 20 Jan 2016 20:52:02 +0000 (21:52 +0100)
Resolves: #72847
Releases: master, 7.6
Change-Id: Iaf39687d014d32fa3c385a3747d8ea69076d70d3
Reviewed-on: https://review.typo3.org/46119
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php

index b358ce9..9c343a5 100644 (file)
@@ -2316,6 +2316,7 @@ class GeneralUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     public function tempnamReturnsPathStartingWithGivenPrefix()
     {
         $filePath = GeneralUtility::tempnam('foo');
+        $this->testFilesToDelete[] = $filePath;
         $fileName = basename($filePath);
         $this->assertStringStartsWith('foo', $fileName);
     }
@@ -2326,6 +2327,7 @@ class GeneralUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     public function tempnamReturnsPathWithoutBackslashes()
     {
         $filePath = GeneralUtility::tempnam('foo');
+        $this->testFilesToDelete[] = $filePath;
         $this->assertNotContains('\\', $filePath);
     }
 
@@ -2335,6 +2337,7 @@ class GeneralUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     public function tempnamReturnsAbsolutePathInsideDocumentRoot()
     {
         $filePath = GeneralUtility::tempnam('foo');
+        $this->testFilesToDelete[] = $filePath;
         $this->assertStringStartsWith(PATH_site, $filePath);
     }