diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-06-25 13:37:31 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-06-27 10:51:59 +0200 |
commit | 20afe94297ca534b9a59cd73dc90d5cb6546ac02 (patch) | |
tree | f6902d2dad2000890a7326373430301329844b21 /tests | |
parent | 5fbf304c2a1f5d2c5e6a68c28e11c5004bf79646 (diff) | |
download | nextcloud-server-20afe94297ca534b9a59cd73dc90d5cb6546ac02.tar.gz nextcloud-server-20afe94297ca534b9a59cd73dc90d5cb6546ac02.zip |
Do not show a internet connectivity warning if internet access is disabled
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Settings/Controller/CheckSetupControllerTest.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/Settings/Controller/CheckSetupControllerTest.php b/tests/Settings/Controller/CheckSetupControllerTest.php index deca75b4b26..9463e4b2a45 100644 --- a/tests/Settings/Controller/CheckSetupControllerTest.php +++ b/tests/Settings/Controller/CheckSetupControllerTest.php @@ -180,7 +180,7 @@ class CheckSetupControllerTest extends TestCase { $this->assertFalse( self::invokePrivate( $this->checkSetupController, - 'isInternetConnectionWorking' + 'hasInternetConnectivityProblems' ) ); } @@ -206,10 +206,10 @@ class CheckSetupControllerTest extends TestCase { ->will($this->returnValue($client)); - $this->assertTrue( + $this->assertFalse( self::invokePrivate( $this->checkSetupController, - 'isInternetConnectionWorking' + 'hasInternetConnectivityProblems' ) ); } @@ -235,10 +235,10 @@ class CheckSetupControllerTest extends TestCase { ->method('newClient') ->will($this->returnValue($client)); - $this->assertFalse( + $this->assertTrue( self::invokePrivate( $this->checkSetupController, - 'isInternetConnectionWorking' + 'hasInternetConnectivityProblems' ) ); } @@ -540,7 +540,7 @@ class CheckSetupControllerTest extends TestCase { 'backgroundJobsUrl' => 'https://example.org', ], 'cronErrors' => [], - 'serverHasInternetConnection' => false, + 'serverHasInternetConnectionProblems' => true, 'isMemcacheConfigured' => true, 'memcacheDocs' => 'http://docs.example.org/server/go.php?to=admin-performance', 'isRandomnessSecure' => self::invokePrivate($this->checkSetupController, 'isRandomnessSecure'), |