public function testIsBuggyNss200()
 {
     $this->checkSetupController->expects($this->once())->method('getCurlVersion')->will($this->returnValue(['ssl_version' => 'NSS/1.0.2b']));
     $client = $this->getMockBuilder('\\OCP\\Http\\Client\\IClient')->disableOriginalConstructor()->getMock();
     $exception = $this->getMockBuilder('\\GuzzleHttp\\Exception\\ClientException')->disableOriginalConstructor()->getMock();
     $response = $this->getMockBuilder('\\GuzzleHttp\\Message\\ResponseInterface')->disableOriginalConstructor()->getMock();
     $response->expects($this->once())->method('getStatusCode')->will($this->returnValue(200));
     $exception->expects($this->once())->method('getResponse')->will($this->returnValue($response));
     $client->expects($this->at(0))->method('get')->with('https://www.owncloud.org/', [])->will($this->throwException($exception));
     $this->clientService->expects($this->once())->method('newClient')->will($this->returnValue($client));
     $this->assertSame('', $this->invokePrivate($this->checkSetupController, 'isUsedTlsLibOutdated'));
 }
 public function testIsUsedTlsLibOutdatedWithAppstoreDisabledAndServerToServerSharingDisabled()
 {
     // Appstore is disabled by default in EE
     $appStoreDefault = false;
     if (\OC_Util::getEditionString() === '') {
         $appStoreDefault = true;
     }
     $this->config->expects($this->at(0))->method('getSystemValue')->with('has_internet_connection', true)->will($this->returnValue(true));
     $this->config->expects($this->at(1))->method('getSystemValue')->with('appstoreenabled', $appStoreDefault)->will($this->returnValue(false));
     $this->config->expects($this->at(2))->method('getAppValue')->with('files_sharing', 'outgoing_server2server_share_enabled', 'yes')->will($this->returnValue('no'));
     $this->config->expects($this->at(3))->method('getAppValue')->with('files_sharing', 'incoming_server2server_share_enabled', 'yes')->will($this->returnValue('no'));
     $this->checkSetupController->expects($this->never())->method('getCurlVersion')->will($this->returnValue([]));
     $this->assertSame('', $this->invokePrivate($this->checkSetupController, 'isUsedTlsLibOutdated'));
 }