summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-05-11 15:11:09 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-05-11 15:37:24 +0200
commit850e2256f3dee5f94b407ea6b8d85fb84d170eb5 (patch)
treeff300b49cc2f16623992e6e339c679b752ce2de1
parent62f1156a56a671cb593c0531922976914b1d4fa9 (diff)
downloadnextcloud-server-850e2256f3dee5f94b407ea6b8d85fb84d170eb5.tar.gz
nextcloud-server-850e2256f3dee5f94b407ea6b8d85fb84d170eb5.zip
fix tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--apps/theming/tests/Controller/ThemingControllerTest.php2
-rw-r--r--apps/theming/tests/Settings/AdminTest.php10
2 files changed, 12 insertions, 0 deletions
diff --git a/apps/theming/tests/Controller/ThemingControllerTest.php b/apps/theming/tests/Controller/ThemingControllerTest.php
index dda881525f0..f2f14e44a02 100644
--- a/apps/theming/tests/Controller/ThemingControllerTest.php
+++ b/apps/theming/tests/Controller/ThemingControllerTest.php
@@ -814,6 +814,7 @@ class ThemingControllerTest extends TestCase {
url: "",
slogan: "",
color: "#000",
+ imprintUrl: null,
inverted: false,
cacheBuster: null
};
@@ -848,6 +849,7 @@ class ThemingControllerTest extends TestCase {
url: "nextcloudurl",
slogan: "awesome",
color: "#ffffff",
+ imprintUrl: null,
inverted: true,
cacheBuster: null
};
diff --git a/apps/theming/tests/Settings/AdminTest.php b/apps/theming/tests/Settings/AdminTest.php
index 4eac689fb3f..f7361677d77 100644
--- a/apps/theming/tests/Settings/AdminTest.php
+++ b/apps/theming/tests/Settings/AdminTest.php
@@ -83,6 +83,10 @@ class AdminTest extends TestCase {
->willReturn('https://example.com');
$this->themingDefaults
->expects($this->once())
+ ->method('getImprintUrl')
+ ->willReturn('');
+ $this->themingDefaults
+ ->expects($this->once())
->method('getSlogan')
->willReturn('MySlogan');
$this->themingDefaults
@@ -105,6 +109,7 @@ class AdminTest extends TestCase {
'canThemeIcons' => null,
'iconDocs' => null,
'images' => [],
+ 'imprintUrl' => '',
];
$expected = new TemplateResponse('theming', 'settings-admin', $params, '');
@@ -132,6 +137,10 @@ class AdminTest extends TestCase {
->willReturn('https://example.com');
$this->themingDefaults
->expects($this->once())
+ ->method('getImprintUrl')
+ ->willReturn('');
+ $this->themingDefaults
+ ->expects($this->once())
->method('getSlogan')
->willReturn('MySlogan');
$this->themingDefaults
@@ -154,6 +163,7 @@ class AdminTest extends TestCase {
'canThemeIcons' => null,
'iconDocs' => '',
'images' => [],
+ 'imprintUrl' => '',
];
$expected = new TemplateResponse('theming', 'settings-admin', $params, '');