ソースを参照

Fix the theming tests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v18.0.0beta1
Roeland Jago Douma 4年前
コミット
069b938ab0
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更6行の追加0行の削除
  1. 6
    0
      apps/theming/tests/Controller/ThemingControllerTest.php

+ 6
- 0
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'));
}


読み込み中…
キャンセル
保存