Ping more privacy respecting organizations

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-04-05 21:38:54 +02:00
parent feef3cbba0
commit 176b4d6832
No known key found for this signature in database
GPG Key ID: F941078878347C0C
2 changed files with 13 additions and 7 deletions

View File

@ -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) {

View File

@ -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))