summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-16 08:30:20 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-16 08:30:20 +0100
commit3837cb95fde8b1b89b037a5e1dee303b0fd3272c (patch)
treee45cf0f5b535aa4fe5059b6800c19058ed19c23d
parentf850871415b8e957c73908bc5cad195ac8c30c13 (diff)
parent7048d428b189d40c65457e49e38bf6d6994cc66b (diff)
downloadnextcloud-server-3837cb95fde8b1b89b037a5e1dee303b0fd3272c.tar.gz
nextcloud-server-3837cb95fde8b1b89b037a5e1dee303b0fd3272c.zip
Merge pull request #22377 from owncloud/remove-unneeded-code
Remove unneeded parameter from OC_App::getEnabledApps
-rw-r--r--tests/lib/app.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/app.php b/tests/lib/app.php
index 065296827dd..e7255ad955a 100644
--- a/tests/lib/app.php
+++ b/tests/lib/app.php
@@ -287,7 +287,7 @@ class Test_App extends \Test\TestCase {
* Tests that the app order is correct
*/
public function testGetEnabledAppsIsSorted() {
- $apps = \OC_App::getEnabledApps(true);
+ $apps = \OC_App::getEnabledApps();
// copy array
$sortedApps = $apps;
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();
\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);
// 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->restoreAppConfig();
@@ -501,7 +501,7 @@ class Test_App extends \Test\TestCase {
});
// Remove the cache of the mocked apps list with a forceRefresh
- \OC_App::getEnabledApps(true);
+ \OC_App::getEnabledApps();
}
/**