summaryrefslogtreecommitdiffstats
path: root/tests/lib/Security
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-10-25 21:36:17 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-10-25 22:03:10 +0200
commite351ba56f13f82a9d5a8f95ee42f5343a167d5f4 (patch)
tree2d3c33df8c1114ee976df15ba8fb689e73ff249f /tests/lib/Security
parentd5589a15d5c681bb26cb8717e0e5abdb5021a1b1 (diff)
downloadnextcloud-server-e351ba56f13f82a9d5a8f95ee42f5343a167d5f4.tar.gz
nextcloud-server-e351ba56f13f82a9d5a8f95ee42f5343a167d5f4.zip
Move browserSupportsCspV3 to CSPNonceManager
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/Security')
-rw-r--r--tests/lib/Security/CSP/ContentSecurityPolicyNonceManagerTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/Security/CSP/ContentSecurityPolicyNonceManagerTest.php b/tests/lib/Security/CSP/ContentSecurityPolicyNonceManagerTest.php
index 39d24807d5b..3211a5284f8 100644
--- a/tests/lib/Security/CSP/ContentSecurityPolicyNonceManagerTest.php
+++ b/tests/lib/Security/CSP/ContentSecurityPolicyNonceManagerTest.php
@@ -24,6 +24,7 @@ namespace Test\Security\CSP;
use OC\Security\CSP\ContentSecurityPolicyNonceManager;
use OC\Security\CSRF\CsrfToken;
use OC\Security\CSRF\CsrfTokenManager;
+use OCP\IRequest;
use Test\TestCase;
class ContentSecurityPolicyNonceManagerTest extends TestCase {
@@ -35,7 +36,8 @@ class ContentSecurityPolicyNonceManagerTest extends TestCase {
public function setUp() {
$this->csrfTokenManager = $this->createMock(CsrfTokenManager::class);
$this->nonceManager = new ContentSecurityPolicyNonceManager(
- $this->csrfTokenManager
+ $this->csrfTokenManager,
+ $this->createMock(IRequest::class)
);
}