[BUGFIX] Fix broken unit tests for PackageManager 54/34954/2
authorMarkus Klein <klein.t3@reelworx.at>
Tue, 2 Dec 2014 19:44:05 +0000 (20:44 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Tue, 2 Dec 2014 19:48:05 +0000 (20:48 +0100)
Resolves: #63531
Releases: master
Change-Id: Iba8e8b148915b73a14aa1bc74ee6ce460d64de03
Reviewed-on: http://review.typo3.org/34954
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/core/Tests/Unit/Package/PackageManagerTest.php

index 187f3ca..3500f7f 100644 (file)
@@ -38,7 +38,7 @@ class PackageManagerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $mockCache->expects($this->any())->method('set')->will($this->returnValue(TRUE));
                $mockCache->expects($this->any())->method('getBackend')->will($this->returnValue($mockCacheBackend));
                $mockCacheBackend->expects($this->any())->method('getCacheDirectory')->will($this->returnValue('vfs://Test/Cache'));
-               $this->packageManager = $this->getAccessibleMock(\TYPO3\CMS\Core\Package\PackageManager::class, array('sortAndSavePackageStates'));
+               $this->packageManager = $this->getAccessibleMock(\TYPO3\CMS\Core\Package\PackageManager::class, array('sortAndSavePackageStates', 'sortAvailablePackagesByDependencies'));
 
                mkdir('vfs://Test/Packages/Application', 0700, TRUE);
                mkdir('vfs://Test/Configuration');