diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-02-16 12:30:21 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-02-16 12:30:21 +0100 |
commit | a9d1a0144018e60ba2728708bf965b4d9855920b (patch) | |
tree | 654af530f9af35621fbe7033b244085693c300d6 /tests/lib/appframework/http | |
parent | b20174bdad33f619054db08e320e5e546e2834b1 (diff) | |
download | nextcloud-server-a9d1a0144018e60ba2728708bf965b4d9855920b.tar.gz nextcloud-server-a9d1a0144018e60ba2728708bf965b4d9855920b.zip |
Rename to allowEval
Diffstat (limited to 'tests/lib/appframework/http')
-rw-r--r-- | tests/lib/appframework/http/ContentSecurityPolicyTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/appframework/http/ContentSecurityPolicyTest.php b/tests/lib/appframework/http/ContentSecurityPolicyTest.php index 3b30bba33d4..739028cb3b5 100644 --- a/tests/lib/appframework/http/ContentSecurityPolicyTest.php +++ b/tests/lib/appframework/http/ContentSecurityPolicyTest.php @@ -66,7 +66,7 @@ class ContentSecurityPolicyTest extends \Test\TestCase { $expectedPolicy = "default-src 'none';script-src 'self';style-src 'self' 'unsafe-inline';img-src 'self';font-src 'self';connect-src 'self';media-src 'self'"; $this->contentSecurityPolicy->allowInlineScript(false); - $this->contentSecurityPolicy->evalScriptState(false); + $this->contentSecurityPolicy->allowEvalScript(false); $this->assertSame($expectedPolicy, $this->contentSecurityPolicy->buildPolicy()); } @@ -201,7 +201,7 @@ class ContentSecurityPolicyTest extends \Test\TestCase { $expectedPolicy = "default-src 'none';script-src 'self' script.owncloud.org;style-src 'self' style.owncloud.org;img-src 'self' img.owncloud.org;font-src 'self' font.owncloud.org;connect-src 'self' connect.owncloud.org;media-src 'self' media.owncloud.org;object-src objects.owncloud.org;frame-src frame.owncloud.org"; $this->contentSecurityPolicy->allowInlineStyle(false) - ->evalScriptState(false) + ->allowEvalScript(false) ->addAllowedScriptDomain('script.owncloud.org') ->addAllowedStyleDomain('style.owncloud.org') ->addAllowedFontDomain('font.owncloud.org') |