Remove unneeded parameter from OC_App::getEnabledApps

This commit is contained in:
Morris Jobke 2016-02-14 21:07:01 +01:00
parent ac367b97f0
commit 7048d428b1
1 changed files with 5 additions and 5 deletions

View File

@ -287,7 +287,7 @@ class Test_App extends \Test\TestCase {
* Tests that the app order is correct * Tests that the app order is correct
*/ */
public function testGetEnabledAppsIsSorted() { public function testGetEnabledAppsIsSorted() {
$apps = \OC_App::getEnabledApps(true); $apps = \OC_App::getEnabledApps();
// copy array // copy array
$sortedApps = $apps; $sortedApps = $apps;
sort($sortedApps); sort($sortedApps);
@ -413,7 +413,7 @@ class Test_App extends \Test\TestCase {
) )
); );
$apps = \OC_App::getEnabledApps(true, $forceAll); $apps = \OC_App::getEnabledApps(false, $forceAll);
$this->restoreAppConfig(); $this->restoreAppConfig();
\OC_User::setUserId(null); \OC_User::setUserId(null);
@ -448,11 +448,11 @@ class Test_App extends \Test\TestCase {
) )
); );
$apps = \OC_App::getEnabledApps(true); $apps = \OC_App::getEnabledApps();
$this->assertEquals(array('files', 'app3', 'dav', 'federatedfilesharing',), $apps); $this->assertEquals(array('files', 'app3', 'dav', 'federatedfilesharing',), $apps);
// mock should not be called again here // mock should not be called again here
$apps = \OC_App::getEnabledApps(false); $apps = \OC_App::getEnabledApps();
$this->assertEquals(array('files', 'app3', 'dav', 'federatedfilesharing',), $apps); $this->assertEquals(array('files', 'app3', 'dav', 'federatedfilesharing',), $apps);
$this->restoreAppConfig(); $this->restoreAppConfig();
@ -501,7 +501,7 @@ class Test_App extends \Test\TestCase {
}); });
// Remove the cache of the mocked apps list with a forceRefresh // Remove the cache of the mocked apps list with a forceRefresh
\OC_App::getEnabledApps(true); \OC_App::getEnabledApps();
} }
/** /**