Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-12-04 11:07:24 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2019-12-04 11:07:24 +0300
commit069b938ab0dda5ee4b42e53474a4f3845223df90 (patch)
treea12e943028b8e5bfd31b91bf5d0c56e500f6f090 /apps/theming/tests
parent323b2c71fc2d427b43888656cef6caed5679bb5d (diff)
Fix the theming tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/theming/tests')
-rw-r--r--apps/theming/tests/Controller/ThemingControllerTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/theming/tests/Controller/ThemingControllerTest.php b/apps/theming/tests/Controller/ThemingControllerTest.php
index 8d4650e68b3..a6aae119ce8 100644
--- a/apps/theming/tests/Controller/ThemingControllerTest.php
+++ b/apps/theming/tests/Controller/ThemingControllerTest.php
@@ -765,6 +765,9 @@ class ThemingControllerTest extends TestCase {
$expected->cacheFor(3600);
$expected->addHeader('Content-Type', 'text/svg');
$expected->addHeader('Content-Disposition', 'attachment; filename="logo"');
+ $csp = new Http\ContentSecurityPolicy();
+ $csp->allowInlineStyle();
+ $expected->setContentSecurityPolicy($csp);
@$this->assertEquals($expected, $this->themingController->getImage('logo'));
}
@@ -793,6 +796,9 @@ class ThemingControllerTest extends TestCase {
$expected->cacheFor(3600);
$expected->addHeader('Content-Type', 'image/png');
$expected->addHeader('Content-Disposition', 'attachment; filename="background"');
+ $csp = new Http\ContentSecurityPolicy();
+ $csp->allowInlineStyle();
+ $expected->setContentSecurityPolicy($csp);
@$this->assertEquals($expected, $this->themingController->getImage('background'));
}