summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-04-05 21:38:54 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-04-05 21:43:51 +0200
commit176b4d6832f67e4969fe92d54f15b2fe71660d47 (patch)
tree2b4fe3da4f69af7faf718ef800be923eafbbed33
parentfeef3cbba03c4517b25a60820e8c4534b0a02b67 (diff)
downloadnextcloud-server-176b4d6832f67e4969fe92d54f15b2fe71660d47.tar.gz
nextcloud-server-176b4d6832f67e4969fe92d54f15b2fe71660d47.zip
Ping more privacy respecting organizations
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r--settings/Controller/CheckSetupController.php8
-rw-r--r--tests/Settings/Controller/CheckSetupControllerTest.php12
2 files changed, 13 insertions, 7 deletions
diff --git a/settings/Controller/CheckSetupController.php b/settings/Controller/CheckSetupController.php
index 0e7e881645d..4debc52fc51 100644
--- a/settings/Controller/CheckSetupController.php
+++ b/settings/Controller/CheckSetupController.php
@@ -104,8 +104,10 @@ class CheckSetupController extends Controller {
}
$siteArray = ['www.nextcloud.com',
- 'www.google.com',
- 'www.github.com'];
+ 'www.startpage.com',
+ 'www.eff.org',
+ 'www.edri.org',
+ ];
foreach($siteArray as $site) {
if ($this->isSiteReachable($site)) {
@@ -116,7 +118,7 @@ class CheckSetupController extends Controller {
}
/**
- * Chceks if the ownCloud server can connect to a specific URL using both HTTPS and HTTP
+ * Checks if the Nextcloud server can connect to a specific URL using both HTTPS and HTTP
* @return bool
*/
private function isSiteReachable($sitename) {
diff --git a/tests/Settings/Controller/CheckSetupControllerTest.php b/tests/Settings/Controller/CheckSetupControllerTest.php
index a616cc3e70b..9faf4a4b719 100644
--- a/tests/Settings/Controller/CheckSetupControllerTest.php
+++ b/tests/Settings/Controller/CheckSetupControllerTest.php
@@ -150,7 +150,7 @@ class CheckSetupControllerTest extends TestCase {
->method('get')
->will($this->throwException(new \Exception()));
- $this->clientService->expects($this->exactly(3))
+ $this->clientService->expects($this->exactly(4))
->method('newClient')
->will($this->returnValue($client));
@@ -285,13 +285,17 @@ class CheckSetupControllerTest extends TestCase {
->will($this->throwException(new \Exception()));
$client->expects($this->at(1))
->method('get')
- ->with('http://www.google.com/', [])
+ ->with('http://www.startpage.com/', [])
->will($this->throwException(new \Exception()));
$client->expects($this->at(2))
->method('get')
- ->with('http://www.github.com/', [])
+ ->with('http://www.eff.org/', [])
->will($this->throwException(new \Exception()));
- $this->clientService->expects($this->exactly(3))
+ $client->expects($this->at(3))
+ ->method('get')
+ ->with('http://www.edri.org/', [])
+ ->will($this->throwException(new \Exception()));
+ $this->clientService->expects($this->exactly(4))
->method('newClient')
->will($this->returnValue($client));
$this->urlGenerator->expects($this->at(0))