Follow-up to #3819: t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT') delivers wrong value...
authorSteffen Kamper <info@sk-typo3.de>
Thu, 12 Aug 2010 20:51:53 +0000 (20:51 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Thu, 12 Aug 2010 20:51:53 +0000 (20:51 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8592 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
tests/t3lib/cache/backend/t3lib_cache_backend_filebackendTest.php

index 304c810..925b49b 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
 
 2010-08-12 Steffen Kamper  <steffen@typo3.org>
 
+       * Follow-up to #3819: t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT') delivers wrong value in Backend
        * Fixed bug #3819: t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT') delivers wrong value in Backend
        * Fixed bug #15020: Enhancement of t3lib_div::testInt (Thanks to Michiel Roos)
        * Fixed bug #15029: Testcase for t3lib_div::isFirstPartOfStr is missing. (Thanks to Nikolas Hagestein)
index bb009d4..780f44e 100644 (file)
@@ -112,7 +112,7 @@ class t3lib_cache_backend_FileBackendTest extends tx_phpunit_testcase {
         */
        public function getCacheDirectoryReturnsTheCurrentCacheDirectory() {
                $directory = $this->testingCacheDirectory;
-               $fullPathToDirectory = t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT') . '/' . $directory;
+               $fullPathToDirectory = PATH_site . $directory;
 
                $this->backend->setCacheDirectory($directory);
                $this->assertEquals($fullPathToDirectory, $this->backend->getCacheDirectory(), 'getCacheDirectory() did not return the expected value.');