diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-05-17 21:16:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-17 21:16:03 +0200 |
commit | 9236c20a28dd9558d1577ebfd7c7ea9202ca70bb (patch) | |
tree | e6d84fdcbbde8af5bae264db7f58a5a833c7c78e /apps/theming/tests/Settings/AdminTest.php | |
parent | 8696651cfb0370bc6b1e4bcc70ffd4fa1d2b65bd (diff) | |
parent | feff9f5bd1f776ade18ec8e196553730ef408a54 (diff) | |
download | nextcloud-server-9236c20a28dd9558d1577ebfd7c7ea9202ca70bb.tar.gz nextcloud-server-9236c20a28dd9558d1577ebfd7c7ea9202ca70bb.zip |
Merge pull request #9437 from nextcloud/feature/noid/imprint
allow to specify a link to a legal notice
Diffstat (limited to 'apps/theming/tests/Settings/AdminTest.php')
-rw-r--r-- | apps/theming/tests/Settings/AdminTest.php | 10 |
1 files changed, 10 insertions, 0 deletions
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, ''); |