Skip to content

Commit

Permalink
Merge pull request #18220 from nextcloud/fix/theming/tests
Browse files Browse the repository at this point in the history
Fix the theming tests
  • Loading branch information
rullzer authored Dec 4, 2019
2 parents 738e6bf + 069b938 commit 17eece7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/theming/tests/Controller/ThemingControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,9 @@ public function testGetLogo() {
$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'));
}

Expand Down Expand Up @@ -793,6 +796,9 @@ public function testGetLoginBackground() {
$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'));
}

Expand Down

0 comments on commit 17eece7

Please sign in to comment.