Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-04-24 13:15:28 +0300
committerJoas Schilling <coding@schilljs.com>2017-04-25 12:43:06 +0300
commitbedd500884aaef136089e857cd04c18a0fce8070 (patch)
tree8c24f5fc63be8c26cb2755724e6626d52b56cf7a /apps/theming/tests/ThemingDefaultsTest.php
parentbc1efdf2e1c0744748e03b1552a9b8234e509d2f (diff)
Logo and background URLs must be relative
They are used way to often for such a change Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/theming/tests/ThemingDefaultsTest.php')
-rw-r--r--apps/theming/tests/ThemingDefaultsTest.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/theming/tests/ThemingDefaultsTest.php b/apps/theming/tests/ThemingDefaultsTest.php
index 2fda63d4fe1..0334f5ba69c 100644
--- a/apps/theming/tests/ThemingDefaultsTest.php
+++ b/apps/theming/tests/ThemingDefaultsTest.php
@@ -432,8 +432,7 @@ class ThemingDefaultsTest extends TestCase {
->method('getAppValue')
->with('theming', 'backgroundMime', false)
->willReturn('image/svg+xml');
- $expected = $this->urlGenerator->linkToRouteAbsolute('theming.Theming.getLoginBackground');
- $this->assertEquals($expected, $this->template->getBackground());
+ $this->assertEquals('/index.php/apps/theming/loginbackground', $this->template->getBackground());
}
public function testGetLogoDefault() {
@@ -455,8 +454,7 @@ class ThemingDefaultsTest extends TestCase {
->method('getFolder')
->with('images')
->willThrowException(new \Exception());
- $expected = $this->urlGenerator->getAbsoluteURL('/core/img/logo.svg') . '?v=0';
- $this->assertEquals($expected, $this->template->getLogo());
+ $this->assertEquals('/core/img/logo.svg?v=0', $this->template->getLogo());
}
public function testGetLogoCustom() {
@@ -478,8 +476,7 @@ class ThemingDefaultsTest extends TestCase {
->method('getAppValue')
->with('theming', 'cachebuster', '0')
->willReturn('0');
- $expected = $this->urlGenerator->getAbsoluteURL('index.php/apps/theming/logo') . '?v=0';
- $this->assertEquals($expected, $this->template->getLogo());
+ $this->assertEquals('/index.php/apps/theming/logo?v=0', $this->template->getLogo());
}
public function testGetScssVariablesCached() {