[FOLLOWUP][TASK] FAL: Use file drivers correctly in Folder::getSubfolder 87/40487/2
authorBenjamin Mack <benni@typo3.org>
Sat, 20 Jun 2015 12:10:03 +0000 (14:10 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 20 Jun 2015 12:14:03 +0000 (14:14 +0200)
Remove obsolete unit test.

Resolves: #65305
Resolves: #59475
Resolves: #59473
Releases: master
Change-Id: Iba3dbd92bf646f219649150df13a2a87715b0d24
Reviewed-on: http://review.typo3.org/40487
Reviewed-by: Daniel Maier <dani-maier@gmx.de>
Tested-by: Daniel Maier <dani-maier@gmx.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Tests/Unit/Resource/FolderTest.php

index 69e167c..f624ba4 100644 (file)
@@ -133,19 +133,6 @@ class FolderTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
        /**
         * @test
         */
-       public function getSubfolderCallsFactoryWithCorrectArguments() {
-               $mockedStorage = $this->getMock(\TYPO3\CMS\Core\Resource\ResourceStorage::class, array(), array(), '', FALSE);
-               $mockedStorage->expects($this->once())->method('hasFolderInFolder')->with($this->equalTo('someSubfolder'))->will($this->returnValue(TRUE));
-               $mockedFactory = $this->getMock(\TYPO3\CMS\Core\Resource\ResourceFactory::class);
-               $mockedFactory->expects($this->once())->method('createFolderObject')->with($mockedStorage, '/somePath/someFolder/someSubfolder/', 'someSubfolder');
-               \TYPO3\CMS\Core\Utility\GeneralUtility::setSingletonInstance(\TYPO3\CMS\Core\Resource\ResourceFactory::class, $mockedFactory);
-               $fixture = $this->createFolderFixture('/somePath/someFolder/', 'someFolder', $mockedStorage);
-               $fixture->getSubfolder('someSubfolder');
-       }
-
-       /**
-        * @test
-        */
        public function getParentFolderGetsParentFolderFromStorage() {
                $parentIdentifier = '/parent/';
                $currentIdentifier = '/parent/current/';