[BUGFIX] Followup to read only filemounts 00/31500/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Tue, 8 Jul 2014 09:57:28 +0000 (11:57 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Tue, 8 Jul 2014 10:06:56 +0000 (12:06 +0200)
Fix tests by provide proper mocking of the storage

Resolves: #49391
Resolves: #57979
Releases: 6.2, 6.3
Change-Id: I2cd9e1bcffd082e861a7c8ae2fba6c68b461a8cc
Reviewed-on: https://review.typo3.org/31500
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/backend/Tests/Unit/Utility/IconUtilityTest.php

index 74b9678..868e39e 100644 (file)
@@ -78,6 +78,7 @@ class IconUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $mockedStorage->expects($this->any())->method('getRootLevelFolder')->will($this->returnValue(
                        new \TYPO3\CMS\Core\Resource\Folder($mockedStorage, '/', '/')
                ));
+               $mockedStorage->expects($this->any())->method('checkFolderActionPermission')->will($this->returnValue(TRUE));
                return new \TYPO3\CMS\Core\Resource\Folder($mockedStorage, $identifier, $identifier);
        }