summaryrefslogtreecommitdiffstats
path: root/apps/theming/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-29 16:12:10 +0100
committerGitHub <noreply@github.com>2018-01-29 16:12:10 +0100
commit4fcdfbf5de5496cf1fc683b6a2f4c55764de8e02 (patch)
tree2daf3982a94dec5538b5defaecf5f86280ddad6c /apps/theming/tests
parent01482b32a171bb8529bc8baacbe764107e52e14c (diff)
parent5dbf73339542977698e1f3ae6d22624fab74fe3e (diff)
downloadnextcloud-server-4fcdfbf5de5496cf1fc683b6a2f4c55764de8e02.tar.gz
nextcloud-server-4fcdfbf5de5496cf1fc683b6a2f4c55764de8e02.zip
Merge pull request #8078 from nextcloud/theming-validate-scss
SCSS hardening
Diffstat (limited to 'apps/theming/tests')
-rw-r--r--apps/theming/tests/ThemingDefaultsTest.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/apps/theming/tests/ThemingDefaultsTest.php b/apps/theming/tests/ThemingDefaultsTest.php
index d0dc6587f74..1a4679a2993 100644
--- a/apps/theming/tests/ThemingDefaultsTest.php
+++ b/apps/theming/tests/ThemingDefaultsTest.php
@@ -517,18 +517,12 @@ class ThemingDefaultsTest extends TestCase {
['theming.Theming.getLoginBackground', [], 'custom-background'],
]);
- $this->urlGenerator->expects($this->exactly(2))
- ->method('getAbsoluteURL')
- ->willReturnCallback(function ($path) {
- return 'absolute-' . $path;
- });
-
$expected = [
'theming-cachebuster' => '\'0\'',
'theming-logo-mime' => '\'jpeg\'',
'theming-background-mime' => '\'jpeg\'',
- 'image-logo' => "'absolute-custom-logo?v=0'",
- 'image-login-background' => "'absolute-custom-background?v=0'",
+ 'image-logo' => "'custom-logo?v=0'",
+ 'image-login-background' => "'custom-background?v=0'",
'color-primary' => $this->defaults->getColorPrimary(),
'color-primary-text' => '#ffffff',
'image-login-plain' => 'false',