From 069b938ab0dda5ee4b42e53474a4f3845223df90 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 4 Dec 2019 09:07:24 +0100 Subject: [PATCH] Fix the theming tests Signed-off-by: Roeland Jago Douma --- apps/theming/tests/Controller/ThemingControllerTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/theming/tests/Controller/ThemingControllerTest.php b/apps/theming/tests/Controller/ThemingControllerTest.php index 8d4650e68b..a6aae119ce 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')); }