diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-12-04 11:07:24 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-12-04 11:07:24 +0300 |
commit | 069b938ab0dda5ee4b42e53474a4f3845223df90 (patch) | |
tree | a12e943028b8e5bfd31b91bf5d0c56e500f6f090 /apps | |
parent | 323b2c71fc2d427b43888656cef6caed5679bb5d (diff) |
Fix the theming tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/theming/tests/Controller/ThemingControllerTest.php | 6 |
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')); } |