fix tests

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2018-05-11 15:11:09 +02:00
parent 62f1156a56
commit 850e2256f3
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
2 changed files with 12 additions and 0 deletions

View File

@ -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
};

View File

@ -81,6 +81,10 @@ class AdminTest extends TestCase {
->expects($this->once())
->method('getBaseUrl')
->willReturn('https://example.com');
$this->themingDefaults
->expects($this->once())
->method('getImprintUrl')
->willReturn('');
$this->themingDefaults
->expects($this->once())
->method('getSlogan')
@ -105,6 +109,7 @@ class AdminTest extends TestCase {
'canThemeIcons' => null,
'iconDocs' => null,
'images' => [],
'imprintUrl' => '',
];
$expected = new TemplateResponse('theming', 'settings-admin', $params, '');
@ -130,6 +135,10 @@ class AdminTest extends TestCase {
->expects($this->once())
->method('getBaseUrl')
->willReturn('https://example.com');
$this->themingDefaults
->expects($this->once())
->method('getImprintUrl')
->willReturn('');
$this->themingDefaults
->expects($this->once())
->method('getSlogan')
@ -154,6 +163,7 @@ class AdminTest extends TestCase {
'canThemeIcons' => null,
'iconDocs' => '',
'images' => [],
'imprintUrl' => '',
];
$expected = new TemplateResponse('theming', 'settings-admin', $params, '');