[TASK] Fix failing unit tests for LocalDriver 44/19244/2
authorAndreas Wolf <andreas.wolf@typo3.org>
Sun, 24 Mar 2013 10:40:48 +0000 (11:40 +0100)
committerAndreas Wolf <andreas.wolf@typo3.org>
Sun, 24 Mar 2013 11:33:24 +0000 (12:33 +0100)
The original patch for #46604 unfortunately broke two (non-critical)
unit tests, which are fixed again by this commit.

Change-Id: I36d2cc62cc6cc744cd482aad573db57a57f832a8
Related: #46604
Releases: 6.1, 6.0
Reviewed-on: https://review.typo3.org/19244
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php

index 685f718..0791510 100644 (file)
@@ -142,12 +142,12 @@ class LocalDriverTest extends \TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCase {
        /**
         * @test
         */
-       public function getDefaultFolderReturnsFolderForTemporaryPath() {
+       public function getDefaultFolderReturnsFolderForUserUploadPath() {
                $fixture = $this->createDriverFixture(array(
                        'basePath' => $this->getMountRootUrl()
                ));
                $folder = $fixture->getDefaultFolder();
-               $this->assertStringEndsWith('_temp_/', $folder->getIdentifier());
+               $this->assertStringEndsWith('user_upload/', $folder->getIdentifier());
        }
 
        /**
@@ -158,7 +158,7 @@ class LocalDriverTest extends \TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCase {
                        'basePath' => $this->getMountRootUrl()
                ));
                $fixture->getDefaultFolder();
-               $this->assertFileExists($this->getUrlInMount('/_temp_/'));
+               $this->assertFileExists($this->getUrlInMount('/user_upload/'));
        }
 
        /**