summaryrefslogtreecommitdiffstats
path: root/tests/lib/App/AppStore
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/App/AppStore')
-rw-r--r--tests/lib/App/AppStore/Fetcher/AppFetcherTest.php12
-rw-r--r--tests/lib/App/AppStore/Fetcher/FetcherBase.php8
2 files changed, 10 insertions, 10 deletions
diff --git a/tests/lib/App/AppStore/Fetcher/AppFetcherTest.php b/tests/lib/App/AppStore/Fetcher/AppFetcherTest.php
index 9b772ca5bfc..3390e08881b 100644
--- a/tests/lib/App/AppStore/Fetcher/AppFetcherTest.php
+++ b/tests/lib/App/AppStore/Fetcher/AppFetcherTest.php
@@ -1866,9 +1866,9 @@ EJL3BaQAQaASSsvFrcozYxrQG4VzEg==
->willReturnCallback(function ($key, $default) {
if ($key === 'appstoreenabled') {
return true;
- } else if ($key === 'version') {
+ } elseif ($key === 'version') {
return '11.0.0.2';
- } else if ($key === 'appstoreurl' && $default === 'https://apps.nextcloud.com/api/v1') {
+ } elseif ($key === 'appstoreurl' && $default === 'https://apps.nextcloud.com/api/v1') {
return 'https://custom.appsstore.endpoint/api/v1';
} else {
return $default;
@@ -1949,7 +1949,7 @@ EJL3BaQAQaASSsvFrcozYxrQG4VzEg==
->willReturnCallback(function ($var, $default) {
if ($var === 'appstoreenabled') {
return false;
- } else if ($var === 'version') {
+ } elseif ($var === 'version') {
return '11.0.0.2';
}
return $default;
@@ -1968,7 +1968,7 @@ EJL3BaQAQaASSsvFrcozYxrQG4VzEg==
->willReturnCallback(function ($var, $default) {
if ($var === 'has_internet_connection') {
return false;
- } else if ($var === 'version') {
+ } elseif ($var === 'version') {
return '11.0.0.2';
}
return $default;
@@ -1985,9 +1985,9 @@ EJL3BaQAQaASSsvFrcozYxrQG4VzEg==
->willReturnCallback(function ($key, $default) {
if ($key === 'appstoreenabled') {
return true;
- } else if ($key === 'version') {
+ } elseif ($key === 'version') {
return '10.0.7.2';
- } else if ($key === 'appstoreurl' && $default === 'https://apps.nextcloud.com/api/v1') {
+ } elseif ($key === 'appstoreurl' && $default === 'https://apps.nextcloud.com/api/v1') {
return 'https://custom.appsstore.endpoint/api/v1';
} else {
return $default;
diff --git a/tests/lib/App/AppStore/Fetcher/FetcherBase.php b/tests/lib/App/AppStore/Fetcher/FetcherBase.php
index 11813c7f3bd..cfe0af40483 100644
--- a/tests/lib/App/AppStore/Fetcher/FetcherBase.php
+++ b/tests/lib/App/AppStore/Fetcher/FetcherBase.php
@@ -213,7 +213,7 @@ abstract class FetcherBase extends TestCase {
->willReturnCallback(function ($key, $default) {
if ($key === 'appstoreenabled') {
return true;
- } else if ($key === 'version') {
+ } elseif ($key === 'version') {
return '11.0.0.2';
} else {
return $default;
@@ -506,7 +506,7 @@ abstract class FetcherBase extends TestCase {
->willReturnCallback(function ($key, $default) {
if ($key === 'appstoreenabled') {
return true;
- } else if ($key === 'version') {
+ } elseif ($key === 'version') {
return '11.0.0.2';
} else {
return $default;
@@ -587,7 +587,7 @@ abstract class FetcherBase extends TestCase {
->willReturnCallback(function ($key, $default) {
if ($key === 'appstoreenabled') {
return true;
- } else if ($key === 'version') {
+ } elseif ($key === 'version') {
return '11.0.0.2';
} else {
return $default;
@@ -674,7 +674,7 @@ abstract class FetcherBase extends TestCase {
->willReturnCallback(function ($key, $default) {
if ($key === 'appstoreenabled') {
return true;
- } else if ($key === 'version') {
+ } elseif ($key === 'version') {
return '11.0.0.3';
} else {
return $default;