summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-03-04 09:36:01 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-03-04 09:36:01 +0100
commitf1d74e8803efc2d642dd37751eff928ec42b8ec6 (patch)
tree698fe18880f63be71b54ea9f5b2ae64b64377db8 /tests
parent84785a6a390733fead61af5856c56dbc9ad19cd9 (diff)
parentb4cfc79b5a09ea53c8a76082e1d0bf85abf0e579 (diff)
downloadnextcloud-server-f1d74e8803efc2d642dd37751eff928ec42b8ec6.tar.gz
nextcloud-server-f1d74e8803efc2d642dd37751eff928ec42b8ec6.zip
Merge pull request #14651 from owncloud/add-some-headers-to-htaccess-for-my-best-friend-jenkins
Let users configure security headers in their Webserver
Diffstat (limited to 'tests')
-rw-r--r--tests/settings/controller/securitysettingscontrollertest.php71
1 files changed, 0 insertions, 71 deletions
diff --git a/tests/settings/controller/securitysettingscontrollertest.php b/tests/settings/controller/securitysettingscontrollertest.php
index d89e4932368..56848d8df30 100644
--- a/tests/settings/controller/securitysettingscontrollertest.php
+++ b/tests/settings/controller/securitysettingscontrollertest.php
@@ -31,77 +31,6 @@ class SecuritySettingsControllerTest extends \PHPUnit_Framework_TestCase {
$this->securitySettingsController = $this->container['SecuritySettingsController'];
}
-
- public function testEnforceSSLEmpty() {
- $this->container['Config']
- ->expects($this->once())
- ->method('setSystemValue')
- ->with('forcessl', false);
-
- $response = $this->securitySettingsController->enforceSSL();
- $expectedResponse = array('status' => 'success');
-
- $this->assertSame($expectedResponse, $response);
- }
-
- public function testEnforceSSL() {
- $this->container['Config']
- ->expects($this->once())
- ->method('setSystemValue')
- ->with('forcessl', true);
-
- $response = $this->securitySettingsController->enforceSSL(true);
- $expectedResponse = array('status' => 'success');
-
- $this->assertSame($expectedResponse, $response);
- }
-
- public function testEnforceSSLInvalid() {
- $this->container['Config']
- ->expects($this->exactly(0))
- ->method('setSystemValue');
-
- $response = $this->securitySettingsController->enforceSSL('blah');
- $expectedResponse = array('status' => 'error');
-
- $this->assertSame($expectedResponse, $response);
- }
-
- public function testEnforceSSLForSubdomainsEmpty() {
- $this->container['Config']
- ->expects($this->once())
- ->method('setSystemValue')
- ->with('forceSSLforSubdomains', false);
-
- $response = $this->securitySettingsController->enforceSSLForSubdomains();
- $expectedResponse = array('status' => 'success');
-
- $this->assertSame($expectedResponse, $response);
- }
-
- public function testEnforceSSLForSubdomains() {
- $this->container['Config']
- ->expects($this->once())
- ->method('setSystemValue')
- ->with('forceSSLforSubdomains', true);
-
- $response = $this->securitySettingsController->enforceSSLForSubdomains(true);
- $expectedResponse = array('status' => 'success');
-
- $this->assertSame($expectedResponse, $response);
- }
-
- public function testEnforceSSLForSubdomainsInvalid() {
- $this->container['Config']
- ->expects($this->exactly(0))
- ->method('setSystemValue');
-
- $response = $this->securitySettingsController->enforceSSLForSubdomains('blah');
- $expectedResponse = array('status' => 'error');
-
- $this->assertSame($expectedResponse, $response);
- }
-
public function testTrustedDomainsWithExistingValues() {
$this->container['Config']
->expects($this->once())